uglifier
uglifier copied to clipboard
Ruby wrapper for UglifyJS JavaScript compressor.
Ruby 3.1.2 Ruby on Rails 7.0.3.1 gem Uglifier 4.2.0 Third party library: Bootstrap **5.2** ( [new version 5.2 released](https://blog.getbootstrap.com/2022/07/19/bootstrap-5-2-0/) ) #### With bootstrap 5.1.3 (previous version) all works fine! `app/assets/config/manifest.js`...
I know there there are tons of solution for this issue and I've tried all of them and still facing this issue while it's trying to compile assets. here is...
Uglifier::Error: from ****gems/uglifier-4.2.0/lib/uglifier.rb:291:in `parse_result' To reproduce the error, just paste the code in your file and run `Uglifier.new(harmony: true).compile(File.read("test.js"))` ``` function f(){ return 1;}; var y = 42; y =...
Hi there, I am using: * Ruby 3.1.2p20 * Rails 7.0.3 * Uglifier 4.2.0 In a previous version of Rails/Ruby (Rails 6 on Ruby 3.0), it was working correctly. However...
Hi There I am trying to precompile assets with config.assets.js_compressor = Uglifier.new(harmony: true) and I receive the error Uglifier::Error: Unexpected token: punc (.) for JS syntax like this: .data('id'))?.advanced_settings Full...
Hi there, Version (4.2.0) My JS compressor settings are this: ``` config.assets.js_compressor = Uglifier.new({ harmony: true, # Required for ES6 scripts output: { comments: :none, # Remove absolutely every comment...
We upgraded Rails from 6.0.3.7 to 6.1.4. We were receiving errors with no error message: "Uglifier::Error: ". When I debugged the issue, I was able to find the following: ```...
I would like to extend/patch this package to support simple custom replacements of strings. For example: "aaa"=>"bbb", "ccc"=>"ddd". it ~5 lines of code to read a file and replace these...
Any documentation for :define => {} parameter? Can't find it in the uglifyjs library
#### NoMethodError: undefined method [`start_with?'](https://github.com/lautis/uglifier/blob/5a92d5c236c2101bb554f4f012122c5ef8d5487d/lib/uglifier.rb#L225) for nil:NilClass My setup: ``` ruby 2.4.2p198 rails-5.1.6 uglifier-4.1.11 therubyracer-0.12.3 ``` Error raised during deployment. Recently I've added [@ckeditor/ckeditor5-build-classic](https://www.npmjs.com/package/@ckeditor/ckeditor5-build-classic) npm package which contains **ES6** syntax....