mirror of
https://github.com/zadam/trilium.git
synced 2025-11-29 03:54:24 +01:00
feat(dev): enable CSS source maps
This commit is contained in:
parent
a7ad45635e
commit
5847ce5c14
@ -27,7 +27,8 @@ async function register(app: express.Application) {
|
|||||||
appType: "custom",
|
appType: "custom",
|
||||||
cacheDir: path.join(srcRoot, "../../.cache/vite"),
|
cacheDir: path.join(srcRoot, "../../.cache/vite"),
|
||||||
base: `/${assetUrlFragment}/`,
|
base: `/${assetUrlFragment}/`,
|
||||||
root: clientDir
|
root: clientDir,
|
||||||
|
css: { devSourcemap: true }
|
||||||
});
|
});
|
||||||
app.use(`/${assetUrlFragment}/`, (req, res, next) => {
|
app.use(`/${assetUrlFragment}/`, (req, res, next) => {
|
||||||
req.url = `/${assetUrlFragment}` + req.url;
|
req.url = `/${assetUrlFragment}` + req.url;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user