File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1111 "babel-cli" : " ^6.24.1" ,
1212 "babel-core" : " ^6.26.0" ,
1313 "babel-eslint" : " ^8.2.2" ,
14- "babel-jest" : " ^22.4.0 " ,
15- "babel-loader" : " ^7.1.2 " ,
14+ "babel-jest" : " ^22.4.1 " ,
15+ "babel-loader" : " ^7.1.4 " ,
1616 "babel-plugin-transform-object-rest-spread" : " ^6.26.0" ,
1717 "babel-preset-env" : " ^1.6.1" ,
1818 "babel-preset-react" : " ^6.24.1" ,
1919 "css-loader" : " ^0.28.10" ,
2020 "enzyme" : " ^3.3.0" ,
2121 "enzyme-adapter-react-16" : " ^1.1.1" ,
22- "eslint" : " ^4.18.1 " ,
23- "eslint-loader" : " ^1.9 .0" ,
22+ "eslint" : " ^4.18.2 " ,
23+ "eslint-loader" : " ^2.0 .0" ,
2424 "eslint-plugin-babel" : " ^4.1.2" ,
2525 "eslint-plugin-react" : " ^7.7.0" ,
26- "jest" : " ^22.4.0 " ,
26+ "jest" : " ^22.4.2 " ,
2727 "path" : " ^0.12.7" ,
2828 "react" : " ^16.2.0" ,
2929 "react-dom" : " ^16.2.0" ,
30- "style-loader" : " ^0.20.2" ,
31- "webpack" : " ^3.11.0"
30+ "style-loader" : " ^0.20.3" ,
31+ "webpack" : " ^4.1.1" ,
32+ "webpack-cli" : " ^2.0.12"
3233 },
3334 "scripts" : {
3435 "test" : " jest" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const webpack = require('webpack');
22const path = require ( 'path' ) ;
33
44module . exports = {
5+ mode : 'production' ,
56 entry : './src/index.js' ,
67 output : {
78 path : path . resolve ( __dirname , 'build' ) ,
@@ -36,8 +37,5 @@ module.exports = {
3637 externals : {
3738 'react' : 'commonjs react' ,
3839 'react-dom' : 'commonjs react-dom' ,
39- } ,
40- plugins : [
41- new webpack . optimize . UglifyJsPlugin ( )
42- ]
40+ }
4341} ;
You can’t perform that action at this time.
0 commit comments