gruntjs / grunt-contrib-sass

Compile Sass to CSS.
http://gruntjs.com/
MIT License
848 stars 141 forks source link

Generated sourcemap css comment produces an issue with Safari #283

Open unfulvio-godaddy opened 8 months ago

unfulvio-godaddy commented 8 months ago

Currently the plugin generates a sourceMappingURL comment in the output css file like so:

/*# sourceMappingURL=example.min.css.map */

However, notice no spaces between * and # -- this seems to generate an error on Safari until a space is inserted between the two, like so:

/* # sourceMappingURL=example.min.css.map */

I couldn't find an option to enforce this... I am using the latest version of the plugin and the Sass gem... Any ideas?

See also this issue on a project using this for further details:

https://github.com/godaddy-wordpress/wc-plugin-framework/issues/360