File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ var LodashModuleReplacementPlugin = require("lodash-webpack-plugin");
8
8
// We do this because lodash isn't available in `production` mode.
9
9
config . output . filename = config . output . filename . replace ( / \. m i n \. j s $ / , ".js" ) ;
10
10
config . output . pathinfo = true ;
11
+ config . mode = "development" ;
11
12
config . plugins = [
12
13
new LodashModuleReplacementPlugin ( {
13
14
currying : true ,
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ module.exports = {
56
56
}
57
57
]
58
58
} ,
59
+ mode : "production" ,
59
60
plugins : [
60
61
new LodashModuleReplacementPlugin ( {
61
62
currying : true ,
@@ -64,12 +65,6 @@ module.exports = {
64
65
placeholders : true ,
65
66
shorthands : true
66
67
} ) ,
67
- new webpack . optimize . UglifyJsPlugin ( {
68
- sourceMap : true ,
69
- compress : {
70
- warnings : false
71
- }
72
- } ) ,
73
68
new webpack . DefinePlugin ( {
74
69
// Signal production, so that webpack removes non-production code that
75
70
// is in condtionals like: `if (process.env.NODE_ENV === "production")`
You can’t perform that action at this time.
0 commit comments