File tree 4 files changed +10
-10
lines changed
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "presets" : [" es2015" , " stage-2 " ]
2
+ "presets" : [" es2015" , " stage-0 " ]
3
3
}
Original file line number Diff line number Diff line change 57
57
"babel-core" : " ^6.17.0" ,
58
58
"babel-loader" : " ^6.2.5" ,
59
59
"babel-preset-es2015" : " ^6.16.0" ,
60
- "babel-preset-stage-2" : " ^6.17.0" ,
61
- "babili-webpack-plugin" : " 0.0.5" ,
60
+ "babel-preset-stage-0" : " ^6.16.0" ,
62
61
"copy-webpack-plugin" : " ^3.0.1" ,
63
62
"css-loader" : " ^0.25.0" ,
64
63
"eslint" : " ^3.8.0" ,
82
81
"postcss-calc" : " ^5.3.1" ,
83
82
"postcss-cssnext" : " ^2.8.0" ,
84
83
"postcss-import" : " ^8.1.2" ,
85
- "postcss-loader" : " ^0.13 .0" ,
84
+ "postcss-loader" : " ^1.0 .0" ,
86
85
"postcss-nested" : " ^1.0.0" ,
87
86
"rimraf" : " ^2.5.4" ,
88
87
"semantic-release" : " ^4.3.5" ,
Original file line number Diff line number Diff line change @@ -3,13 +3,12 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
3
3
module . exports = {
4
4
loaders : [ {
5
5
test : / \. j s $ / ,
6
- loader : 'babel' ,
7
- exclude : / n o d e _ m o d u l e s /
6
+ loader : 'babel'
8
7
} , {
9
8
test : / \. j s $ / ,
10
9
loaders : [
11
10
`string-replace?search=require(config.parser)&replace=require("../../src/lint/parser")` , // eslint itself
12
- `string-replace?search=require(rules[ruleId])&replace=void 0 ` , // eslint itself
11
+ `string-replace?search=require(rules[ruleId])&replace=undefined ` , // eslint itself
13
12
]
14
13
} , {
15
14
test : / \. j s o n $ / ,
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ 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" ) ;
7
6
8
7
const { isDevelopment, isProduction, port } = require ( './env' ) ;
9
8
@@ -32,11 +31,14 @@ if (isDevelopment) {
32
31
) ;
33
32
} else if ( isProduction ) {
34
33
plugins . push (
35
- new BabiliPlugin ( )
34
+ new webpack . optimize . UglifyJsPlugin ( {
35
+ compress : {
36
+ warnings : false
37
+ }
38
+ } )
36
39
) ;
37
40
}
38
41
39
-
40
42
plugins . push (
41
43
new CopyWebpackPlugin ( [ ] )
42
44
) ;
You can’t perform that action at this time.
0 commit comments