Skip to content

Commit 46c6b1d

Browse files
committed
fix(fonts): copy fonts into the correct place
Kinda fixes #1215 Signed-off-by: Goldfels <Goldfels@users.noreply.github.com>
1 parent 0fba2a2 commit 46c6b1d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

vite.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { defineConfig, normalizePath } from 'vite'
77
import { join, resolve } from 'path'
88
import { viteStaticCopy } from 'vite-plugin-static-copy'
99

10-
const EXCALIDRAW_FONTS_DIR = normalizePath(resolve('node_modules/@nextcloud/excalidraw/dist/prod/fonts'))
11-
1210
const AppConfig = createAppConfig({
1311
main: resolve(join('src', 'main.ts')),
1412
settings: resolve(join('src', 'admin.ts')),
@@ -70,8 +68,9 @@ const AppConfig = createAppConfig({
7068
viteStaticCopy({
7169
targets: [
7270
{
73-
src: EXCALIDRAW_FONTS_DIR,
71+
src: normalizePath(resolve('node_modules/@nextcloud/excalidraw/dist/prod/fonts')),
7472
dest: 'dist',
73+
rename: {'stripBase': 5},
7574
},
7675
],
7776
}),

0 commit comments

Comments
 (0)