tdewolff / minify

Go minifiers for web formats

Home Page:https://go.tacodewolff.nl/minify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

should sourceMappingURL be preserved?

Marzal opened this issue · comments

Hi, newcomer to minify and CSS in general.

I'm playing with hugo and when using minify I get /*# sourceMappingURL=main.css.map */ removed from the last line.

I'm not sure if minify should treat this line as a especial case and keep it.

Thanks for this great project!

Resources:
https://firefox-source-docs.mozilla.org/devtools-user/debugger/how_to/use_a_source_map/index.html
https://developer.chrome.com/blog/sourcemappingurl-and-sourceurl-syntax-changed
https://sourcemaps.info/spec.html

Thanks David, this has been implemented for CSS!

Thanks, that was a quick response 👍