Merge pull request #59 from ant-design/update-uglifyjs-opts

update uglify opts, transform unicode to ascii
This commit is contained in:
偏右 2015-07-22 15:27:15 +08:00
commit 5468ec86c4

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;