diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-07-10 17:30:15 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-07-10 17:30:15 +1000 |
| commit | f0df00add356c0ee4cc8743a9ceeb276ae207715 (patch) | |
| tree | 32c50d153e7ad1e9d315adaa697ae64b660f5522 | |
| parent | fe005a4aeb0bc3d384a8702da3a575398dd77ef2 (diff) | |
Add preload <link> for font
| -rw-r--r-- | index.html | 3 | ||||
| -rw-r--r-- | vite.config.js | 4 |
2 files changed, 3 insertions, 4 deletions
@@ -2,10 +2,11 @@ <html lang="en"> <head> <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Tilo: Interactive Tree of Life</title> <meta name="description" content="An online tool for visually exploring the biological Tree of Life"/> <link rel="icon" href="/favicon.png" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <link rel="preload" href="/fonts/Ubuntu-Regular.woff2" as="font" type="font/woff2" crossorigin/> </head> <body> <div id="app"></div> diff --git a/vite.config.js b/vite.config.js index 900daa2..7352973 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,9 +5,7 @@ export default defineConfig({ base: '/', plugins: [vue()], server: { - proxy: { - '/data': 'http://localhost:8000' - }, + proxy: {'/data': 'http://localhost:8000'}, watch: { ignored: ['**/backend', '**/public'] }, |
