weboptimizer 4.0.97 → 4.0.98-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -209,7 +209,12 @@ environment = eval('process.env')) => {
|
|
|
209
209
|
if (!childProcessOptions.env) childProcessOptions.env = {};
|
|
210
210
|
if (typeof childProcessOptions.env.PATH !== 'string') childProcessOptions.env.PATH = '';
|
|
211
211
|
childProcessOptions.env.PATH += `: ${webOptimizerPath}/node_modules/.bin`;
|
|
212
|
-
|
|
212
|
+
|
|
213
|
+
/*
|
|
214
|
+
NOTE: Passing arguments separately is deprecated in
|
|
215
|
+
shell mode since they would only be concatenated.
|
|
216
|
+
*/
|
|
217
|
+
const childProcess = spawnChildProcess([configuration.commandLine.build.command].concat(commandLineArguments).join(' '), childProcessOptions);
|
|
213
218
|
const copyAdditionalFilesAndTidyUp = () => {
|
|
214
219
|
for (const filePath of configuration.files.additionalPaths) {
|
|
215
220
|
const sourcePath = join(configuration.path.source.base, filePath);
|
|
@@ -282,7 +287,9 @@ environment = eval('process.env')) => {
|
|
|
282
287
|
if (evaluated.result) processPromises.push(new Promise((resolve, reject) => {
|
|
283
288
|
const commandLineArguments = (task.arguments || []).concat(additionalArguments);
|
|
284
289
|
void log.info('Running "' + (`${task.command} ` + commandLineArguments.join(' ')).trim() + '"');
|
|
285
|
-
|
|
290
|
+
|
|
291
|
+
// NOTE: See notice for build process above.
|
|
292
|
+
const childProcess = spawnChildProcess([task.command].concat(commandLineArguments).join(' '), childProcessOptions);
|
|
286
293
|
const closeHandler = getProcessCloseHandler(resolve, reject);
|
|
287
294
|
for (const closeEventName of CLOSE_EVENT_NAMES) childProcess.on(closeEventName, closeHandler);
|
|
288
295
|
childProcesses.push(childProcess);
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
endregion
|
|
17
17
|
*/
|
|
18
18
|
// region imports
|
|
19
|
-
function _defineProperty(
|
|
20
|
-
function _toPropertyKey(
|
|
19
|
+
function _defineProperty(r, t, o) { return (t = _toPropertyKey(t)) in r ? Object.defineProperty(r, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = o, r; }
|
|
20
|
+
function _toPropertyKey(r) { var o = _toPrimitive(r, "string"); return "symbol" == typeof o ? o : o + ""; }
|
|
21
21
|
function _toPrimitive(t, e) { if ("object" != typeof t || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); }
|
|
22
22
|
import { copy, extend } from 'clientnode';
|
|
23
23
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
endregion
|
|
17
17
|
*/
|
|
18
18
|
// region imports
|
|
19
|
-
function _defineProperty(
|
|
20
|
-
function _toPropertyKey(
|
|
19
|
+
function _defineProperty(r, t, o) { return (t = _toPropertyKey(t)) in r ? Object.defineProperty(r, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = o, r; }
|
|
20
|
+
function _toPropertyKey(r) { var o = _toPrimitive(r, "string"); return "symbol" == typeof o ? o : o + ""; }
|
|
21
21
|
function _toPrimitive(t, e) { if ("object" != typeof t || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); }
|
|
22
22
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
23
23
|
// endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weboptimizer",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.98-1",
|
|
4
4
|
"description": "A generic web optimizer, (module) bundler and development environment.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"update:documentation": "web-documentation"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@babel/core": "^8.0.
|
|
80
|
+
"@babel/core": "^8.0.10",
|
|
81
81
|
"@babel/plugin-proposal-decorators": "^8.0.2",
|
|
82
82
|
"@babel/plugin-transform-class-properties": "^8.0.1",
|
|
83
83
|
"@babel/plugin-transform-proto-to-assign": "^8.0.1",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"babel-loader": "^10.1.1",
|
|
88
88
|
"babel-plugin-polyfill-corejs3": "^1.0.0",
|
|
89
89
|
"babel-plugin-transform-rewrite-imports": "^1.5.4",
|
|
90
|
-
"clientnode": "4.0.
|
|
90
|
+
"clientnode": "4.0.1528",
|
|
91
91
|
"core-js": "^3.51.0",
|
|
92
92
|
"ejs": "^7.0.2",
|
|
93
93
|
"exports-loader": "^5.0.0",
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"script-loader": "^0.7.2",
|
|
102
102
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
103
103
|
"webpack": "5.112.2",
|
|
104
|
-
"webpack-cli": "^7.
|
|
105
|
-
"webpack-sources": "^3.
|
|
104
|
+
"webpack-cli": "^7.3.1",
|
|
105
|
+
"webpack-sources": "^3.7.0"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"@babel/cli": "^8.0.6",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"@typescript-eslint/parser": "^8.72.1",
|
|
123
123
|
"css-loader": "^7.1.5",
|
|
124
124
|
"cssnano": "^9.9.0",
|
|
125
|
-
"eslint": "^10.
|
|
125
|
+
"eslint": "^10.14.0",
|
|
126
126
|
"eslint-config-google": "^0.14.0",
|
|
127
127
|
"eslint-plugin-jsdoc": "^65.4.2",
|
|
128
128
|
"favicons": "^7.3.1",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"postcss-fontpath": "^1.0.0",
|
|
139
139
|
"postcss-import": "^17.0.1",
|
|
140
140
|
"postcss-loader": "^8.2.1",
|
|
141
|
-
"postcss-preset-env": "^11.6.
|
|
141
|
+
"postcss-preset-env": "^11.6.2",
|
|
142
142
|
"postcss-sprites": "^4.2.1",
|
|
143
143
|
"postcss-url": "^10.1.4",
|
|
144
144
|
"shx": "^0.4.0",
|