File tree Expand file tree Collapse file tree 3 files changed +5
-41
lines changed Open diff view settings
Expand file tree Collapse file tree 3 files changed +5
-41
lines changed Open diff view settings
Original file line number Diff line number Diff line change 1010 "build-eslint" : " rimraf eslint && npm run clone-eslint && npm run webpackify-eslint && cd eslint && npm install --production" ,
1111 "clone-eslint" : " git clone https://github.com/eslint/eslint.git eslint" ,
1212 "webpackify-eslint" : " node tools/webpackify-eslint" ,
13- "develop" : " NODE_ENV=development PORT=8014 concurrently --kill-others 'nodemon ./packages/backend --watch packages/backend' 'webpack-dev-server --no-info --config webpack'" ,
14- "build" : " NODE_ENV=production webpack --config webpack --display-error-details" ,
13+ "develop" : " NODE_ENV=development PORT=8014 concurrently --kill-others 'nodemon ./packages/backend --watch packages/backend' 'webpack-dev-server --no-info --config webpack --mode=development '" ,
14+ "build" : " NODE_ENV=production webpack --config webpack --display-error-details --mode=production " ,
1515 "upgrade" : " rimraf package-lock.json && ncu -a -x eslint-plugin-jsx-a11y,semantic-release && npm install && lerna exec --concurrency 1 -- rimraf package-lock.json && lerna exec --concurrency 1 -- ncu -a && lerna exec -- npm install" ,
1616 "semantic-release" : " semantic-release pre && ssh-keyscan 192.241.157.86 >> ~/.ssh/known_hosts && npm run deploy && semantic-release post" ,
1717 "deploy" : " pm2 deploy ecosystem.config.js production --force" ,
9090 "semantic-release" : " ^6.3.6" ,
9191 "semver" : " ^5.5.0" ,
9292 "style-loader" : " ^0.21.0" ,
93+ "uglifyjs-webpack-plugin" : " ^1.2.5" ,
9394 "validate-commit-msg" : " ^2.14.0" ,
9495 "webpack" : " ^4.9.1" ,
9596 "webpack-cli" : " ^2.1.4" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
33const OpenBrowserPlugin = require ( 'open-browser-webpack-plugin' ) ;
44const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
55const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
6+ const UglifyJsPlugin = require ( 'uglifyjs-webpack-plugin' ) ;
67
78const { isDevelopment, isProduction, devPort } = require ( './env' ) ;
89
@@ -32,11 +33,7 @@ if (isDevelopment) {
3233 } )
3334 ) ;
3435} else if ( isProduction ) {
35- plugins . push ( new webpack . optimize . UglifyJsPlugin ( {
36- compress : {
37- warnings : false
38- }
39- } ) ) ;
36+ plugins . push ( new UglifyJsPlugin ( ) ) ;
4037}
4138
4239plugins . push ( new CopyWebpackPlugin ( [ {
You can’t perform that action at this time.
0 commit comments