Skip to content

Commit

Permalink
optimize build
Browse files Browse the repository at this point in the history
  • Loading branch information
deificx committed Jan 3, 2016
1 parent 7e9680b commit 7aced74
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var path = require('path');
var webpack = require('webpack');

module.exports = {
entry: path.join(__dirname, 'src', 'game.js'),
Expand Down Expand Up @@ -26,5 +27,13 @@ module.exports = {
}
}
]
}
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(true),
new webpack.optimize.UglifyJsPlugin({
output: {
comments: false
}
}),
]
}

0 comments on commit 7aced74

Please sign in to comment.