Fix non-Windows builds. Fixes #2453

This commit is contained in:
Joe Groocock 2018-08-19 22:12:35 +01:00
commit e84b108c39
No known key found for this signature in database
GPG key ID: E0B16BEACFBB6A86

View file

@ -30,7 +30,7 @@ function getEnvOptions() {
function webpack(type) {
// 'webpack' instead of direct path can cause https://github.com/angular/angular-cli/issues/6417
return run(`node node_modules\\webpack\\bin\\webpack.js --config webpack.config${type ? `.${type}` : ""}.ts${getEnvOptions()}`).exec();
return run(`node ${path.join('node_modules', 'webpack', 'bin', 'webpack.js')} --config webpack.config${type ? `.${type}` : ""}.ts${getEnvOptions()}`).exec();
}
gulp.task("vendor", () => {