Skip to content

fix(fonts): copy fonts into the correct place#1245

Open
Goldfels wants to merge 1 commit into
nextcloud:mainfrom
Goldfels:main
Open

fix(fonts): copy fonts into the correct place#1245
Goldfels wants to merge 1 commit into
nextcloud:mainfrom
Goldfels:main

Conversation

@Goldfels

Copy link
Copy Markdown

In the plugin vite-plugin-static-copy starting from version 4, there's a major breaking change: the folder structure is now always preserved. Because of this, when copying the fonts into dist, it is under node_modules/... instead of fonts, which breaks font loading from the server.

This can be easily fixed with the new rename option.

Technically, this also fixes #1215, since loading fonts from the server is allowed by the CSP.

Kinda fixes nextcloud#1215

Signed-off-by: Goldfels <Goldfels@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Fonts not loading due to Content Security Policy

1 participant