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 don't point to correct line #60

Open
creativetags opened this issue Jul 29, 2024 · 0 comments
Open

Sourcemaps don't point to correct line #60

creativetags opened this issue Jul 29, 2024 · 0 comments

Comments

@creativetags
Copy link

with sassc-rails I was used to inline comments like:

/* line 1415, app/assets/stylesheets/main.sass */
.footer-buttons {
  display: flex;
}

I don't get them with dartsass-rails but I figured out you can turn on sourcemaps with:
config.assets.debug = truein /config/environments/development.rb

I then enabled CSS source maps in Chrome dev tools settings and now I get a link to the sass file main.source.sass but the line number is like 13,000 when there are only 1,700 lines in that file.

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

1 participant