Skip to content

Commit

Permalink
use unplugin-fonts/vite to load font and icons
Browse files Browse the repository at this point in the history
  • Loading branch information
f-w committed Dec 16, 2024
1 parent b05be89 commit 92acba0
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 32 deletions.
4 changes: 0 additions & 4 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NotifyBC Web Console</title>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<script type="text/javascript">
var apiUrlPrefix = '<%- apiUrlPrefix %>';
var oidcAuthority = '<%- oidcAuthority %>';
Expand Down
8 changes: 1 addition & 7 deletions client/package-lock.json

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

3 changes: 1 addition & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"@iframe-resizer/child": "^5.3.2",
"@iframe-resizer/parent": "^5.3.2",
"vue": "^3.4.31",
"vuetify": "^3.6.14",
"webfontloader": "^1.0.0"
"vuetify": "^3.6.14"
},
"devDependencies": {
"@eslint/js": "^9.14.0",
Expand Down
2 changes: 0 additions & 2 deletions client/src/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ import { createPinia } from 'pinia';
import router from '../router';
import { useDefaultStore } from '../store';
import vuetify from './vuetify';
import { loadFonts } from './webfontloader';

export function registerPlugins(app) {
loadFonts();
const pinia = createPinia();
app.use(vuetify).use(router).use(pinia);
app.config.globalProperties.$store = useDefaultStore();
Expand Down
17 changes: 0 additions & 17 deletions client/src/plugins/webfontloader.js

This file was deleted.

3 changes: 3 additions & 0 deletions client/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ export default async ({ mode }) => {
name: 'Roboto',
styles: 'wght@100;300;400;500;700;900',
},
{
name: 'Material Icons',
},
],
},
}),
Expand Down

0 comments on commit 92acba0

Please sign in to comment.