sprockets_uglifier_with_source_maps icon indicating copy to clipboard operation
sprockets_uglifier_with_source_maps copied to clipboard

sourcemaps not getting generated..

Open danscrima opened this issue 8 years ago • 3 comments

I have a project with: ruby '2.1.5' gem 'rails', '4.2.6' gem 'uglifier' gem 'sprockets', github: 'rails/sprockets' gem 'sprockets-rails', github: 'rails/sprockets-rails' gem 'sass-rails', github: 'rails/sass-rails' gem 'sprockets_uglifier_with_source_maps'

My development.rb file has the following params: config.assets.debug = false config.sass.debug_info = false config.sass.line_comments = false config.assets.uglifier = {output: {beautify: true, indent_level: 2}, compress: {angular: true}} config.assets.js_compressor = :uglifier_with_source_maps

I actually clone your new_stack project and added some js files but still am not seeing any map files generated. Maybe I'm configuring something incorrectly? Thanks!

danscrima avatar Aug 11 '16 15:08 danscrima

Having the same issue, no source maps are generated at all in production or dev environments:

ruby 2.2.4 rails 4.2.6

(all other gems are the same as @danscrima's setup)

Nothing generated at run time or when using rake assets:precompile

jrjamespdx avatar Sep 13 '16 04:09 jrjamespdx

rm -rf tmp/cache may help

AlexanderPavlenko avatar Feb 01 '17 11:02 AlexanderPavlenko

I was able to fix the issue by using:

gem 'uglifier', '~> 3.2'
gem 'execjs', '~> 2.7'

nhinze avatar May 30 '17 11:05 nhinze