AlexanderPavlenko / sprockets_uglifier_with_source_maps

Create javascript source maps for your Rails applications
MIT License
35 stars 13 forks source link

sourcemaps not getting generated.. #3

Open danscrima opened 8 years ago

danscrima commented 8 years ago

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!

jrjamespdx commented 8 years ago

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

AlexanderPavlenko commented 7 years ago

rm -rf tmp/cache may help

nhinze commented 7 years ago

I was able to fix the issue by using:

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