Skip to content

Commit 3bb24d6

Browse files
committed
Turn off production option of webpack
With production option, Uglify of webpack fails. angular/angular-cli#5730 There are two ways to solve this issue. Turning off production option of webpack or making babel do more polyfill by passing browser options even though the result code will never run on browser.
1 parent f4e056c commit 3bb24d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"test": "mocha-webpack --webpack-config webpack.test.config.js test",
88
"start:standalone": "npm run build:standalone && node ./standalone/standalone.bundle.js",
9-
"build": "webpack -p --config webpack.server.config.js",
9+
"build": "webpack --config webpack.server.config.js",
1010
"build:standalone": "webpack --config webpack.standalone.config.js",
1111
"dist": "cp package.json ./dist/ && cd ./dist && npm install --production",
1212
"lint": "eslint . --cache",

0 commit comments

Comments
 (0)