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 for CSS #25

Open
ai opened this issue Feb 2, 2015 · 3 comments
Open

Source maps for CSS #25

ai opened this issue Feb 2, 2015 · 3 comments

Comments

@ai
Copy link

ai commented Feb 2, 2015

As I understand from docs, Parcelify doesn’t support sources map yet.

@ai
Copy link
Author

ai commented Feb 2, 2015

/cc @dgbeck

@dgbeck
Copy link
Member

dgbeck commented Feb 2, 2015

Hi @ai ! It is actually browserify that works this magic. Just use the --maps option (command line) or pass { debug : true } as the browserifyBundleOptions option (api) and you should be all set. Is that what you were looking for?

@dgbeck
Copy link
Member

dgbeck commented Feb 3, 2015

Sorry, just saw the title of this issue.

We have not yet contemplated css source map support. For our own projects we use cartero which leaves each css asset separate in dev mode, so debugging is already easy and we have not had any need for source maps.

This feature would be a challenge to implement in parcelify. You would have to generate the source map yourself, maybe using the ones generated by sass as building blocks, since parcelify is concatenating all the css files. Also in order to make this modular it would need to be implemented mostly as a transform. I think it would be possible, for example by using sass-to-css-stream as a starting point, but I sense devils in the details. We would also need to add a hook to parcelify so that we could dump a .map file once everything has been concatenated.

I'm not opposed to adding this functionality and would gladly review a PR, but right now it is not on our priority list. cartero already fills this need for us quite adequately.

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

2 participants