weboptimizer 2.0.1504 → 2.0.1505
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/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -68,7 +68,7 @@ var main = function main(context) {
|
|
|
68
68
|
return _regenerator["default"].wrap(function _callee2$(_context3) {
|
|
69
69
|
while (1) switch (_context3.prev = _context3.next) {
|
|
70
70
|
case 0:
|
|
71
|
-
if (environment.PATH && !environment.PATH.includes(':
|
|
71
|
+
if (environment.PATH && !environment.PATH.includes(':node_modules/.bin')) environment.PATH += ':node_modules/.bin';else environment.PATH = 'node_modules/.bin';
|
|
72
72
|
configuration = (0, _configurator.load)(context, currentWorkingDirectory, commandLineArguments, webOptimizerPath, environment);
|
|
73
73
|
clear = (0, _clientnode.NOOP)();
|
|
74
74
|
_context3.prev = 3;
|
|
@@ -510,6 +510,7 @@ var main = function main(context) {
|
|
|
510
510
|
if (evaluated.result) processPromises.push(new Promise(function (resolve, reject) {
|
|
511
511
|
var commandLineArguments = (task.arguments || []).concat(additionalArguments);
|
|
512
512
|
console.info('Running "' + ("".concat(task.command, " ") + commandLineArguments.join(' ')).trim() + '"');
|
|
513
|
+
console.log('A', childProcessOptions);
|
|
513
514
|
var childProcess = (0, _child_process.spawn)(task.command, commandLineArguments, childProcessOptions);
|
|
514
515
|
var closeHandler = (0, _clientnode.getProcessCloseHandler)(resolve, reject);
|
|
515
516
|
var _iterator10 = _createForOfIteratorHelper(_clientnode.CLOSE_EVENT_NAMES),
|