Closed nextofsearch closed 7 years ago
I tried both options but the web server gets hung
config.assets.js_compressor = Uglifier.new(keep_fnames: true)
config.assets.js_compressor = Uglifier.new(mangle: {keep_fnames: true})
What would be the correct options?
What does the input JS for Uglifier after Babel (if used) look like? This might depend a bit on how you're writing your JS and what's your ES6 to ES5 compilation setup.
Running into same thing with es6 syntax for react-rails. reactjs/react-rails#668 is probably related to this.
Apologies if not!
There's now ES6 syntax support with the (experimental) harmony flag. In Rails application.rb, add config.assets.js_compressor = Uglifier.new(harmony: true)
.
Hi,
Is there anyway to exclude react component names to get minified?
Thanks,