why uglifyjs always compress unicode characters to utf8 #490
Once more, plz read the doc carefully before using it!!!
brandonmp added a commit to brandonmp/crossbuilder that referenced this issue
Oct 31, 2016
2 changes here: 1. i think `compressor` should be `compress`. i'm not sure if both work or not, but the (webpack docs)[http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin] say `compress` 2. `UglifyJS` unescapes `\u0000` and other unicode char code strings and converts them . this results in some libraries (`eg, `js-base64`, `firebase`) getting screwed up, and Chrome refusing to load the extension b/c the `injection` isn't `utf-8`. i hit that problem today and have been researching it. i could be wrong, but wanted to put in a PR to see what you thought there's a `couchDB` bug that briefly explains it [here](pouchdb/pouchdb#5798) the post that discusses the solution is on the `uglify` [repo here](mishoo/UglifyJS#490)