File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11{
2- "presets" : [" es2015" , " react" ]
2+ "presets" : [" es2015" , " react" ],
3+ "plugins" : [" lodash" ]
34}
Original file line number Diff line number Diff line change 5151 "babel-core" : " ^6.25.0" ,
5252 "babel-eslint" : " ^7.2.3" ,
5353 "babel-loader" : " ^7.1.1" ,
54+ "babel-plugin-lodash" : " ^3.3.4" ,
5455 "babel-polyfill" : " ^6.23.0" ,
5556 "babel-preset-es2015" : " ^6.24.1" ,
5657 "babel-preset-react" : " ^6.24.1" ,
6566 "eslint-plugin-react" : " ^7.0.1" ,
6667 "husky" : " ^0.13.3" ,
6768 "jsdom" : " ^9.12.0" ,
69+ "lodash-webpack-plugin" : " ^0.11.5" ,
6870 "mocha" : " ^3.4.2" ,
6971 "nyc" : " ^11.0.2" ,
7072 "react-addons-test-utils" : " ^15.6.2" ,
Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
22const CleanWebpackPlugin = require ( 'clean-webpack-plugin' ) ;
33const UglifyJsPlugin = require ( 'uglifyjs-webpack-plugin' ) ;
4+ const LodashModuleReplacementPlugin = require ( 'lodash-webpack-plugin' ) ;
45const BundleAnalyzerPlugin = require ( 'webpack-bundle-analyzer' ) . BundleAnalyzerPlugin ;
56
67module . exports = {
@@ -18,6 +19,7 @@ module.exports = {
1819 } ,
1920 plugins : [
2021 new CleanWebpackPlugin ( [ 'dist' ] ) ,
22+ new LodashModuleReplacementPlugin ( ) ,
2123 new UglifyJsPlugin ( {
2224 comments : false ,
2325 } ) ,
You can’t perform that action at this time.
0 commit comments