Skip to content

Commit

Permalink
fix: default font display on webload
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelin committed May 15, 2020
1 parent e7276bd commit d26538c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
25 changes: 15 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"devDependencies": {
"@cypress/code-coverage": "^3.4.1",
"@mdi/font": "^4.9.95",
"@mdi/js": "^5.2.45",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/exec": "^5.0.0",
Expand Down
1 change: 0 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import router from './router/index.js'
import store from './store/index.js'
import './registerServiceWorker'
import vuetify from './plugins/vuetify'
import '@mdi/font/css/materialdesignicons.css'

Vue.config.productionTip = false

Expand Down
3 changes: 1 addition & 2 deletions src/plugins/vuetify.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import Vue from 'vue'
import Vuetify from 'vuetify/lib'
import manifestJSON from '../../public/manifest.json'
import '@mdi/font/css/materialdesignicons.css' // Ensure to use css-loader

Vue.use(Vuetify)

const mq = window.matchMedia('(prefers-color-scheme: dark)')

const vuetify = new Vuetify({
icons: {
iconfont: 'mdi'
iconfont: 'mdiSvg'
},
theme: {
dark: mq.matches,
Expand Down

0 comments on commit d26538c

Please sign in to comment.