Building web, Electron, Cordova and Chrome apps, and cross-browser extensions with React, Redux and Webpack. "Write once, deploy everywhere" concept in practice.
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 theinjectionisn'tutf-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
the post that discusses the solution is on the uglifyrepo here
2 changes here:
i think
compressor
should becompress
. i'm not sure if both work or not, but the (webpack docs)[http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin] saycompress
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
injectionisn'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 herethe post that discusses the solution is on the
uglify
repo here