Hi! I'm Darragh ORiordan.
I live and work in Sydney, Australia enjoying the mountains and the ocean.
I build and support happy teams that create high quality software for the web!
hey! I use tailwind so the css/classes are all in the component's className attribute. Haven't needed a source map to trace them back to a separate file.
Hi! I'm Darragh ORiordan.
I live and work in Sydney, Australia enjoying the mountains and the ocean.
I build and support happy teams that create high quality software for the web!
not 100% sure. are you using SASS, PostCSS or some other CSS processor? At first thought i would guess it's not a vite concern and should be configured in the preprocessor.
It looks like you can hook vite build into a preprocessor with something like
Hi! I'm Darragh ORiordan.
I live and work in Sydney, Australia enjoying the mountains and the ocean.
I build and support happy teams that create high quality software for the web!
Hi Darragh! How did you configure the CSS source mapping during your migration from CRA to Vite?
hey! I use tailwind so the css/classes are all in the component's
classNameattribute. Haven't needed a source map to trace them back to a separate file.I see. Do you know how to configure CSS source mapping? I can't find the configuration method in the documentation
not 100% sure. are you using SASS, PostCSS or some other CSS processor? At first thought i would guess it's not a vite concern and should be configured in the preprocessor.
It looks like you can hook vite build into a preprocessor with something like
if you use postcss, vite automatically searches for the postcss.config.js or wherever you have your postcss config.
you can turn them on with
map: { inline: true },I tried to configure the map of postCSS, but it didn't work. I wonder if there is something wrong with my configuration