We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81e8cd0 commit 3e72897Copy full SHA for 3e72897
1 file changed
webpack.config.babel.js
@@ -16,11 +16,16 @@ export default {
16
},
17
plugins: [
18
new webpack.optimize.OccurrenceOrderPlugin(),
19
+ new webpack.DefinePlugin({
20
+ 'process.env': {
21
+ NODE_ENV: JSON.stringify('production')
22
+ }
23
+ }),
24
new ExtractTextPlugin('style.css'),
25
new CopyWebpackPlugin([
26
{ from: 'static', to: './' }
- ])
- //new webpack.optimize.UglifyJsPlugin()
27
+ ]),
28
+ new webpack.optimize.UglifyJsPlugin()
29
],
30
module: {
31
rules: [
0 commit comments