Replies: 1 comment
-
|
The issue is likely with your A few things to check: 1. Verify sourcemap files exist find ../Abs.WebApp/wwwroot -name "*.css.map"2. Check CSS file for sourceMappingURL /*# sourceMappingURL=admin.css.map */3. Try explicit CSS sourcemap config build: {
sourcemap: true,
rollupOptions: {
output: {
sourcemap: true,
// For CSS assets, include .map extension handling
assetFileNames: (assetInfo) => {
const fileName = assetInfo.name ?? "";
// Handle both CSS and their sourcemaps
if (fileName.endsWith("admin.css") || fileName.endsWith("admin.css.map"))
return "admin/css/admin[extname]";
// ... rest of your logic
},
},
},
}4. Known Vite 7 issue? npm install vite@6Also, |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Can't get vite to create css sourcemaps.
I have this project structure for a .NET 10 web app:
Vite is supposed to take the Abs.WebApp.Client/src and put the css and js and soucemaps in the Abs,WebApp/wwwroot folders.
It's producing sourcemaps for js, but not for css.
vite 7.2.4
vite.config.ts:
Significant part of package.json
Beta Was this translation helpful? Give feedback.
All reactions