update uglify opts, transform unicode to ascii

This commit is contained in:
sorrycc 2015-07-22 15:05:56 +08:00
parent 59869fa42d
commit 29b7e2ed33

View File

@ -7,7 +7,11 @@ var config = require("./webpack.config.js");
config.plugins = [
new ExtractTextPlugin('[name].min.css'),
new webpack.optimize.UglifyJsPlugin()
new webpack.optimize.UglifyJsPlugin({
output: {
ascii_only: true
}
})
];
config.output.filename = config.output.filename.replace(/\.js$/, ".min.js");
delete config.entry.demo;