Replies: 2 comments 4 replies
-
|
CSS sourcemaps in Vite have a separate flag from JS: css.devSourcemap. Your config needs: |
Beta Was this translation helpful? Give feedback.
3 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to get it to output some kind of sourcemap (anything really at this point) for css. Nothing is working so far. I've set every concievable sourcemap flag to true. I wonder how many more flags it needs.
This is the config, stripped to relevant parts:
You'd think one of those sourcemap flags would make it generate sourcemaps, right? Well, nothing. Nothing at all. Not even a file in the wrong location or with incorrect source paths. Just absolutely buggerall, I think is the technical term.
I also can't know what isn't generating the sourcemaps, and what should be generating sourcemaps. Is it sass-embedded? Is it Rollup? Is it Vite itself? No idea where neither the responsibility is, nor where the hiccup is happening.
Javascript sourcemaps work fine. They worked fine by just adding
sourcemap: trueand that was it. Why is it so difficult for Sass? And what should I add to make it work please?Beta Was this translation helpful? Give feedback.
All reactions