Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sourcemaps not getting generated.. #3

Open
danscrima opened this issue Aug 11, 2016 · 3 comments
Open

sourcemaps not getting generated.. #3

danscrima opened this issue Aug 11, 2016 · 3 comments

Comments

@danscrima
Copy link

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
Copy link

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
Copy link
Owner

rm -rf tmp/cache may help

@nhinze
Copy link

nhinze commented May 30, 2017

I was able to fix the issue by using:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants