We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fba2a2 commit 46c6b1dCopy full SHA for 46c6b1d
1 file changed
vite.config.ts
@@ -7,8 +7,6 @@ import { defineConfig, normalizePath } from 'vite'
7
import { join, resolve } from 'path'
8
import { viteStaticCopy } from 'vite-plugin-static-copy'
9
10
-const EXCALIDRAW_FONTS_DIR = normalizePath(resolve('node_modules/@nextcloud/excalidraw/dist/prod/fonts'))
11
-
12
const AppConfig = createAppConfig({
13
main: resolve(join('src', 'main.ts')),
14
settings: resolve(join('src', 'admin.ts')),
@@ -70,8 +68,9 @@ const AppConfig = createAppConfig({
70
68
viteStaticCopy({
71
69
targets: [
72
{
73
- src: EXCALIDRAW_FONTS_DIR,
+ src: normalizePath(resolve('node_modules/@nextcloud/excalidraw/dist/prod/fonts')),
74
dest: 'dist',
+ rename: {'stripBase': 5},
75
},
76
],
77
}),
0 commit comments