mirror of
https://github.com/zadam/trilium.git
synced 2026-01-16 03:24:24 +01:00
chore(client): add more optimize deps
This commit is contained in:
parent
e298f5ea6f
commit
a238fc16b2
@ -29,7 +29,23 @@ async function register(app: express.Application) {
|
||||
cacheDir: path.join(srcRoot, "../../.cache/vite"),
|
||||
base: `/${assetUrlFragment}/`,
|
||||
root: clientDir,
|
||||
css: { devSourcemap: true }
|
||||
css: { devSourcemap: true },
|
||||
optimizeDeps: {
|
||||
include: [
|
||||
"ckeditor5-premium-features",
|
||||
"ckeditor5",
|
||||
"codemirror",
|
||||
"mathlive",
|
||||
"@triliumnext/ckeditor5",
|
||||
"@triliumnext/ckeditor5-math",
|
||||
"@triliumnext/ckeditor5-mermaid",
|
||||
"@triliumnext/ckeditor5-admonition",
|
||||
"@triliumnext/ckeditor5-footnotes",
|
||||
"@triliumnext/ckeditor5-keyboard-marker",
|
||||
"@triliumnext/codemirror",
|
||||
"@triliumnext/highlightjs"
|
||||
]
|
||||
},
|
||||
});
|
||||
app.use(`/${assetUrlFragment}/`, (req, res, next) => {
|
||||
req.url = `/${assetUrlFragment}${req.url}`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user