Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source maps #20

Open
pablorc opened this issue Dec 29, 2015 · 5 comments
Open

Source maps #20

pablorc opened this issue Dec 29, 2015 · 5 comments

Comments

@pablorc
Copy link

pablorc commented Dec 29, 2015

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.

@screendriver
Copy link
Collaborator

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?

@henrymsiska
Copy link

Hi @screendriver

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

@screendriver
Copy link
Collaborator

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.

@yyaari
Copy link

yyaari commented Aug 25, 2016

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

@screendriver
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants