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

Reopening #162: config.assets.debug = true still compiles everything into single CSS/JS files? #688

Open
wlnirvana opened this issue Jul 4, 2020 · 5 comments

Comments

@wlnirvana
Copy link

wlnirvana commented Jul 4, 2020

Reopening #162 which is not fixed with rails 5.2.0 and sprockets-rails 3.2.1

This is a bug with source map generation, but the idea is to generate only one asset in development with source maps pointing to the right source.

Originally posted by @rafaelfranca in #162 (comment)

@wlnirvana wlnirvana changed the title This is a bug with source map generation, but the idea is to generate only one asset in development with source maps pointing to the right source. Reopening #162: config.assets.debug = true still compiles everything into single CSS/JS files? Jul 4, 2020
@gemp
Copy link

gemp commented Aug 20, 2020

And the source map isn't working, as stated in #656 with Sprockets 4.

@schneems
Copy link
Member

Hello! Thanks for opening up an issue. In order to move forwards with this issue I'll need an example app that reproduces the behavior (https://www.codetriage.com/example_app).

@fnicastri
Copy link

any update on this? Still not working!

@hmdne
Copy link

hmdne commented Feb 12, 2021

The semantic has changed a bit as far as I understand. You need to select a pipeline in debug mode. Please consult this patch, especially changes to file lib/opal/sprockets/assets_helper.rb:

opal/opal-sprockets@6d9bc12

By default it uses a "default" pipeline, which returns a concatenated file without source maps, you expect a "self" pipeline, which is without source maps, "debug" pipeline returns a concatenated file WITH source maps

Yes, it's true that it returns a single file, but with the more robust caching in 4.0 it works well enough in my experience.

@afdev82
Copy link

afdev82 commented Sep 20, 2021

Hello! Thanks for opening up an issue. In order to move forwards with this issue I'll need an example app that reproduces the behavior (https://www.codetriage.com/example_app).

I found also this issue in rails: rails/rails#43203
The author created already an example app here: https://github.com/josh-m-sharpe/assets_test

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

6 participants