Skip to content

Commit 373e67f

Browse files
committed
Update webpack.config.babel.js
1 parent 9f074e8 commit 373e67f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/webpack.config.babel.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import path from 'path';
2+
import webpack from 'webpack';
23

34
export default {
45
entry: path.resolve(__dirname, 'src/index.jsx'),
@@ -21,6 +22,9 @@ export default {
2122
}
2223
]
2324
},
25+
plugins: [
26+
new webpack.optimize.UglifyJsPlugin()
27+
],
2428
resolve: {
2529
extensions: ['', '.js', '.jsx']
2630
},

0 commit comments

Comments
 (0)