feat(dev): enable CSS source maps

This commit is contained in:
Elian Doran 2025-11-28 23:21:14 +02:00
parent a7ad45635e
commit 5847ce5c14
No known key found for this signature in database

View File

@ -27,7 +27,8 @@ async function register(app: express.Application) {
appType: "custom",
cacheDir: path.join(srcRoot, "../../.cache/vite"),
base: `/${assetUrlFragment}/`,
root: clientDir
root: clientDir,
css: { devSourcemap: true }
});
app.use(`/${assetUrlFragment}/`, (req, res, next) => {
req.url = `/${assetUrlFragment}` + req.url;