Created
October 27, 2018 03:02
-
-
Save tanhauhau/0e83968f49ae706b5cca9238591aed2c to your computer and use it in GitHub Desktop.
ascii only for webpack minify config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const UglifyJsPlugin = require('uglifyjs-webpack-plugin'); | |
module.exports = { | |
//... | |
optimization: { | |
minimizer: new UglifyJsPlugin({ | |
uglifyOptions: { | |
output: { | |
// true for `ascii_only` | |
ascii_only: true | |
}, | |
}, | |
}), | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment