Update webpack cli
[MAILPOET-3658]
This commit is contained in:
committed by
Veljko V
parent
f79c6e58f2
commit
ea695ad5d1
@@ -69,7 +69,7 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
$env = ($opts['env']) ?
|
$env = ($opts['env']) ?
|
||||||
sprintf('./node_modules/cross-env/dist/bin/cross-env.js NODE_ENV="%s"', $opts['env']) :
|
sprintf('./node_modules/cross-env/dist/bin/cross-env.js NODE_ENV="%s"', $opts['env']) :
|
||||||
null;
|
null;
|
||||||
return $this->_exec($env . ' ./node_modules/webpack/bin/webpack.js --bail');
|
return $this->_exec($env . ' ./node_modules/webpack/bin/webpack.js');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function compileCss($opts = ['env' => null]) {
|
public function compileCss($opts = ['env' => null]) {
|
||||||
|
2093
package-lock.json
generated
2093
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -175,7 +175,7 @@
|
|||||||
"ts-loader": "^9.1.2",
|
"ts-loader": "^9.1.2",
|
||||||
"typescript": "^4.2.4",
|
"typescript": "^4.2.4",
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11",
|
"webpack-cli": "^4.7.2",
|
||||||
"webpack-manifest-plugin": "^2.2.0"
|
"webpack-manifest-plugin": "^2.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -13,6 +13,7 @@ const baseConfig = {
|
|||||||
mode: PRODUCTION_ENV ? 'production' : 'development',
|
mode: PRODUCTION_ENV ? 'production' : 'development',
|
||||||
devtool: PRODUCTION_ENV ? undefined : 'eval-source-map',
|
devtool: PRODUCTION_ENV ? undefined : 'eval-source-map',
|
||||||
cache: true,
|
cache: true,
|
||||||
|
bail: true,
|
||||||
context: __dirname,
|
context: __dirname,
|
||||||
watchOptions: {
|
watchOptions: {
|
||||||
aggregateTimeout: 300,
|
aggregateTimeout: 300,
|
||||||
|
Reference in New Issue
Block a user