File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "presets" : [" es2015" , " stage-2" ]
2
+ "presets" : [" es2015" , " stage-2" ],
3
+ "env" : {
4
+ "production" : {
5
+ "presets" : [" babili" ]
6
+ }
7
+ }
3
8
}
Original file line number Diff line number Diff line change 58
58
"babel-loader" : " ^6.2.5" ,
59
59
"babel-preset-es2015" : " ^6.16.0" ,
60
60
"babel-preset-stage-2" : " ^6.17.0" ,
61
+ "babili-webpack-plugin" : " 0.0.5" ,
61
62
"copy-webpack-plugin" : " ^3.0.1" ,
62
63
"css-loader" : " ^0.25.0" ,
63
64
"eslint" : " ^3.8.0" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
3
3
const OpenBrowserPlugin = require ( 'open-browser-webpack-plugin' ) ;
4
4
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
5
5
const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
6
+ const BabiliPlugin = require ( "babili-webpack-plugin" ) ;
6
7
7
8
const { isDevelopment, isProduction, port } = require ( './env' ) ;
8
9
@@ -31,11 +32,7 @@ if (isDevelopment) {
31
32
) ;
32
33
} else if ( isProduction ) {
33
34
plugins . push (
34
- /*new webpack.optimize.UglifyJsPlugin({
35
- compress: {
36
- warnings: false
37
- }
38
- })*/
35
+ new BabiliPlugin ( )
39
36
) ;
40
37
}
41
38
You can’t perform that action at this time.
0 commit comments