mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 13:08:41 +08:00
Merge pull request #59 from ant-design/update-uglifyjs-opts
update uglify opts, transform unicode to ascii
This commit is contained in:
commit
5468ec86c4
6
webpack.config.min.js
vendored
6
webpack.config.min.js
vendored
@ -7,7 +7,11 @@ var config = require("./webpack.config.js");
|
|||||||
|
|
||||||
config.plugins = [
|
config.plugins = [
|
||||||
new ExtractTextPlugin('[name].min.css'),
|
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");
|
config.output.filename = config.output.filename.replace(/\.js$/, ".min.js");
|
||||||
delete config.entry.demo;
|
delete config.entry.demo;
|
||||||
|
Loading…
Reference in New Issue
Block a user