mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +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.
|
# 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
|
# compiled output
|
||||||
dist
|
dist
|
||||||
tmp
|
tmp
|
||||||
|
@ -23,6 +23,7 @@ async function register(app: express.Application) {
|
|||||||
|
|
||||||
if (isDev) {
|
if (isDev) {
|
||||||
const vite = await createViteServer({
|
const vite = await createViteServer({
|
||||||
|
cacheDir: path.join(srcRoot, "../../.cache/vite"),
|
||||||
base: `/${assetUrlFragment}/`,
|
base: `/${assetUrlFragment}/`,
|
||||||
root: path.join(srcRoot, "../client"),
|
root: path.join(srcRoot, "../client"),
|
||||||
plugins: [
|
plugins: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user