We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a427ec3 commit c888203Copy full SHA for c888203
webpack.config.js
@@ -45,16 +45,7 @@ const config = {
45
},
46
devtool: 'source-map',
47
plugins: [
48
- new webpack.EnvironmentPlugin({ NODE_ENV: 'development' }),
49
- new webpack.optimize.OccurrenceOrderPlugin(),
50
- new webpack.optimize.UglifyJsPlugin({
51
- compress: {
52
- warnings: false,
53
- },
54
- mangle: false,
55
- beautify: true,
56
- comments: true,
57
- }),
+ new webpack.EnvironmentPlugin({ NODE_ENV: 'production' }),
58
],
59
module: {
60
rules: [
@@ -88,7 +79,7 @@ switch (target) {
88
79
];
89
80
break;
90
81
case 'development':
91
- config.devtool = 'eval';
82
+ config.devtool = 'eval-source-map';
92
83
config.module.rules.push({
93
84
test: /\.(jpe?g|png|gif|ico|svg)$/,
94
85
use: [fileLoader],
0 commit comments