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

CSS Sourcemap #66

Closed
armchair-traveller opened this issue Oct 24, 2020 · 1 comment · Fixed by #42
Closed

CSS Sourcemap #66

armchair-traveller opened this issue Oct 24, 2020 · 1 comment · Fixed by #42

Comments

@armchair-traveller
Copy link

How would I get CSS sourcemaps to work with DevTools > Sources > Filesystem? I don't really know Rollup options as you can probably tell, but as I understand there's the Replacements section in the docs which serves this purpose. What isn't clear to me is if it's just a placeholder name or if that's exactly what you need to type in to change the Rollup config. There's no mention of how to get this specific feature working, or if it's even remotely possible.

I tried adding sourceMap: true to svelte.config.js but maybe that's completely unrelated.

Also, I'm wondering if anyone even uses sourcemaps since I've only seen brief mention of it in documentation on Rollup.

@nickreese
Copy link
Contributor

nickreese commented Oct 24, 2020

Replacements are for string replacements. (Needs documentation)

I’m honestly not well versed in source maps but pretty sure because of how we are emitting the css directly to the head of the page we aren’t able to display the source map... If I’m wrong let me know, it could be added to the roadmap.

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