Closed tooooolong closed 10 years ago
I will fix the error to fit ruby 1.8.7
Could you please upload a new version gem to Rubygems after you merge this.
Hi, unfortunately this is the incorrect way to solve the problem. Please see the discussion on #35
I might make the Uglifier configuration automatic in the next version:
# override default uglifier options so we don't mangle unicode
config.assets.js_compressor = Uglifier.new(output: {ascii_only: true})
The issue should be solved if you put that in your application.rb
I'll try it. Thank you.
It solved my problem, thank you.
when i run asset precompile on my machine, it works
but i still get the UTF-8 error when i deploy code to production machine. and can fixed by this PR
@tooooolong try deleting the compiled assets from your production machine the fix should work for subsequent runs of rake assets:precompile again
Uglifier fix not working for me. Same issue - UTF-8 error
I'm seeing the same issue.. I traced it to a line in a comment in one of the included javascript files in a gem we added. .
The line is commented
If I remove that line then the compilation doesn't blow up. I'm not sure why a comment is hanging it up, or .. really how to fix this..
@tooooolong Nice inspiration http://robots.thoughtbot.com/post/42664369166/fight-back-utf-8-invalid-byte-sequences. Just applied the same method, at least assets are compiling.