uglifier
uglifier copied to clipboard
Ruby wrapper for UglifyJS JavaScript compressor.
I had problems with a [Phantomjs](http://phantomjs.org/) script that told me that jQuery and other global variables where not defined. Anyway in development mode everything was fine. In the end I...
Rails 4.2.11 project I'm using JQuery among other things and when I do assets precompile with Uglify disabled, I get the Jquery code declared at the very top of the...
Uglifier::Error: Unexpected token punc «{», expected punc «(» 1. Is there any way to get it to spit out the error line when it fails? 2. Is the parsing in...
Hey, There were the following errors while trying to build uglifier: ``` All examples were filtered out; ignoring {:focus=>true} Uglifier generates source maps (FAILED - 1) generates source maps with...
I have multiple js.erb files with embedded ruby, and they all fail when hitting the ruby tags. The error I get is the following: `app/assets/javascripts/training/training_common.js.erb ExecJS::ProgramError: Unexpected token: operator (
I have in environments/production.rb: ``` config.assets.js_compressor = Uglifier.new(harmony: true) ``` $ RAILS_ENV=production bundle exec rake assets:precompile --trace ** Invoke assets:precompile (first_time) ** Invoke assets:environment (first_time) ** Execute assets:environment ** Invoke...
I'm a developer from [mumuki](http://github.com/mumuki/mumuki-atheneum) rails app, which is deployed [here](http://mumuki.io). When I precompile assets i'm getting different digests for my js file on one of my production servers. This...
https://github.com/lautis/uglifier/blob/ca1827dbdc3520ff6712a279365ff7a8f1c5d955/lib/uglifier.rb#L305 This function currently expects symbols. However, Jekyll (a popular static site generator) uses a YAML-based config where config values are basically strings. The popular Jekyll assets plugin *jekyll-assets* takes...
Hi, I use uglifier with Rails and have the following function which is minified incorrectly coffeescript: ``` coffee _is_selected = (tags, slug) -> _.find(tags, slug: slug)?.selected ``` javascript: ``` js...
Spent the last few hours tracking down a problem where the JS on pages rendered with wkhtmltopdf (via WickedPdf gem) would not work (production env only, hosted with Heroku). Downgrading...