mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 22:58:52 +02:00
chore(dx/server): set up cache for Vite
This commit is contained in:
parent
cc474f39d8
commit
1dcb3b1529
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,5 +1,8 @@
|
||||
# See https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
|
||||
|
||||
/.cache
|
||||
!/.cache/vite/.gitkeep
|
||||
|
||||
# compiled output
|
||||
dist
|
||||
tmp
|
||||
|
@ -23,6 +23,7 @@ async function register(app: express.Application) {
|
||||
|
||||
if (isDev) {
|
||||
const vite = await createViteServer({
|
||||
cacheDir: path.join(srcRoot, "../../.cache/vite"),
|
||||
base: `/${assetUrlFragment}/`,
|
||||
root: path.join(srcRoot, "../client"),
|
||||
plugins: [
|
||||
|
Loading…
x
Reference in New Issue
Block a user