Skip to content

Commit 3e72897

Browse files
committed
Change config for production
1 parent 81e8cd0 commit 3e72897

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

webpack.config.babel.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,16 @@ export default {
1616
},
1717
plugins: [
1818
new webpack.optimize.OccurrenceOrderPlugin(),
19+
new webpack.DefinePlugin({
20+
'process.env': {
21+
NODE_ENV: JSON.stringify('production')
22+
}
23+
}),
1924
new ExtractTextPlugin('style.css'),
2025
new CopyWebpackPlugin([
2126
{ from: 'static', to: './' }
22-
])
23-
//new webpack.optimize.UglifyJsPlugin()
27+
]),
28+
new webpack.optimize.UglifyJsPlugin()
2429
],
2530
module: {
2631
rules: [

0 commit comments

Comments
 (0)