Skip to content

Sourcemaps don't point to correct line #60

@creativetags

Description

@creativetags

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions