rails / sprockets-rails

Sprockets Rails integration
MIT License
579 stars 247 forks source link

SourceMappingUrlProcessor (REGEX) does not apply to CSS source maps #518

Open hleb-rubanau opened 1 year ago

hleb-rubanau commented 1 year ago

Processor is great but it only supports JS convention at the moment.

When I generate compressed CSS with dart-sass, sourcemapping URL comment looks like following (

/*# sourceMappingURL=application.css.map */

Unfortunately, its not taken into account by current preprocessor, which expects JS syntax (//# sourceMappingURL) both in parsing and in generation

ghost commented 1 year ago

Note https://github.com/rails/sprockets-rails/pull/498