Skip to content

Commit 9a00f9c

Browse files
committed
Pass mode in to webpack commands.
Also, this branch is unmergeable due to a bug in the mini-css-extract-plugin, wherein [no updated CSS file is emitted in watch mode](webpack-contrib/mini-css-extract-plugin#23). As a result, the project can't upgrade to webpack 4 either.
1 parent 9f54849 commit 9a00f9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"scripts": {
4141
"clean-extra": "rimraf distribution/scripts/ie.js distribution/scripts/print.js distribution/scripts/styles.js",
4242
"lint:scss": "stylelint 'source/**/*.scss' --syntax scss --config stylelint.config.js",
43-
"compile": "webpack",
43+
"compile": "webpack --mode production",
4444
"build": "run-s lint:scss compile clean-extra",
45-
"start": "webpack --watch"
45+
"start": "webpack --mode development --watch"
4646
}
4747
}

0 commit comments

Comments
 (0)