Skip to content

Commit d3c80c1

Browse files
authored
Merge pull request #1483 from FormidableLabs/bug/fix-dist-error
Bug/fix dist error
2 parents f78d9ea + ed4724e commit d3c80c1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

config/webpack/webpack.config.dev.js

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ var LodashModuleReplacementPlugin = require("lodash-webpack-plugin");
88
// We do this because lodash isn't available in `production` mode.
99
config.output.filename = config.output.filename.replace(/\.min\.js$/, ".js");
1010
config.output.pathinfo = true;
11+
config.mode = "development";
1112
config.plugins = [
1213
new LodashModuleReplacementPlugin({
1314
currying: true,

config/webpack/webpack.config.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ module.exports = {
5656
}
5757
]
5858
},
59+
mode: "production",
5960
plugins: [
6061
new LodashModuleReplacementPlugin({
6162
currying: true,
@@ -64,12 +65,6 @@ module.exports = {
6465
placeholders: true,
6566
shorthands: true
6667
}),
67-
new webpack.optimize.UglifyJsPlugin({
68-
sourceMap: true,
69-
compress: {
70-
warnings: false
71-
}
72-
}),
7368
new webpack.DefinePlugin({
7469
// Signal production, so that webpack removes non-production code that
7570
// is in condtionals like: `if (process.env.NODE_ENV === "production")`

0 commit comments

Comments
 (0)