plugin-sass icon indicating copy to clipboard operation
plugin-sass copied to clipboard

Source maps

Open pablorc opened this issue 10 years ago • 5 comments

Hi!

Before all, great plugin! Is in your planning, or exists a way, to create sourcemaps for the generated CSS? I'm migrating a system into JSPM and extending the scss file would be a pain with all these minification.

pablorc avatar Dec 29 '15 13:12 pablorc

Hi @pablorc,

at runtime there is no minification. It only occurs on bundling time. Bundling is meant for production (so everything gets minified and uglified) where runtime injection is for development time.

I could enable source map support for runtime injection if you want?

screendriver avatar Jan 04 '16 13:01 screendriver

Hi @screendriver

I like the plugin as well, could you please add the source map support for runtime injection.

henrymsiska avatar Feb 07 '16 05:02 henrymsiska

I played around a little bit but I don't get source maps running when they are included inline in the html file. It works if you use external loaded .css files with included source maps but not when you include the base64 maps directly into the <style> tags.

screendriver avatar Feb 26 '16 10:02 screendriver

Indeed very good plugin. thanks! I do not entirely agree that bundling is only for production, for medium/large applications it is impossible to use systemjs un-bundled as the app takes forever to load on every refresh. instead we are using increment bundling which works way better, however not being able to use source maps with our sass files is very limiting. Is there anyway to use the plugin with source maps (css is not miniified in our dev flow)?

Thanks

yyaari avatar Aug 25 '16 11:08 yyaari

That's true. In large projects everything is too slow. I would like to add source maps, but unfortunately I don't know how. If anyone would find a way to do that, pull requests are welcome.

screendriver avatar Aug 25 '16 12:08 screendriver