Skip to content

Commit 4b05997

Browse files
committed
Migrate to @fontsource/roboto
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
1 parent f845eac commit 4b05997

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

package-lock.json

Lines changed: 11 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"cypress:update-snapshots": "TESTING=true cypress run --env type=base --spec cypress/e2e/visual-regression.cy.js --config screenshotsFolder=cypress/snapshots/base"
3939
},
4040
"dependencies": {
41+
"@fontsource/roboto": "^4.5.8",
4142
"@nextcloud/auth": "^2.0.0",
4243
"@nextcloud/axios": "^2.1.0",
4344
"@nextcloud/dialogs": "^3.2.0",
@@ -52,7 +53,6 @@
5253
"camelcase": "^7.0.0",
5354
"debounce": "^1.2.1",
5455
"filerobot-image-editor": "^4.3.7",
55-
"fontsource-roboto": "^4.0.0",
5656
"nextcloud-server": "^0.15.10",
5757
"path-parse": "^1.0.7",
5858
"vue": "^2.7.13",

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Vue.mixin({
3535
// Inject proper font for cypress visual regression testing
3636
if (isTesting) {
3737
// Import font so CI has the same
38-
import(/* webpackChunkName: 'roboto-font' */'fontsource-roboto')
38+
import(/* webpackChunkName: 'roboto-font' */'@fontsource/roboto')
3939
}
4040

4141
Vue.prototype.OC = OC

0 commit comments

Comments
 (0)