tablecheck / dartsass-sprockets

Integrate Dart Sass with Sprockets (Ruby on Rails asset pipeline)
MIT License
35 stars 5 forks source link

No source maps generated #23

Open sudoremo opened 7 months ago

sudoremo commented 7 months ago

Problem

According to the documentation, you can enable the generation of inline source maps using the following configuration:

Rails.application.config.sass.inline_source_maps = true

In our case though, this does not generate any source maps in the generated application.css, even after removing tmp/cache entirely. This is in development mode.

Diagnosis

In SassC::Rails::Template#config_options, I have verified that inline_source_maps is indeed enabled, which in turn sets the following options:

opts.merge!(source_map: true,
            source_map_file: '.',
            source_map_embed: true,
            source_map_contents: true)

Looking at the API of sass-embedded, I can't find the aforementioned options though. There are the options source_map and source_map_include_sources instead. Though enabling these does not produce a source map either.

Environment


Many thanks for your wonderful Gem and for having a look at our issue 👍

JosephTico commented 1 month ago

Same issue

keithslater commented 1 week ago

Same problem here