Open z-george-ma opened 7 years ago
Maybe it doesn't work because UglifyJs spoil the global vars names. Try to change uglufy settings to less aggressive
I've had this problem before out of the scope Trumbowyg where Uglify complains that it can't take es6 code. Since then, I switched over to babel-minify-webpack-plugin. I hope that helps.
We use trumbowyg + webpack with the following configuration
Preview.js
webpack.conf.js
The build artefact doesn't work correctly, but commenting out
new webpack.optimize.UglifyJsPlugin()
works.