chore(style.css): update font paths to use a variable for the fonts directory

chore(vite.config.ts): import the resolve function from the path module
This commit is contained in:
Danny Avila 2023-08-09 09:36:50 -04:00 committed by Danny Avila
parent b096fb98ce
commit 193ed93ee8
2 changed files with 15 additions and 14 deletions

View file

@ -1,6 +1,6 @@
import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
import path, { resolve } from 'path';
import type { Plugin } from 'vite';
// https://vitejs.dev/config/
@ -42,6 +42,7 @@ export default defineConfig({
resolve: {
alias: {
'~': path.join(__dirname, 'src/'),
$fonts: resolve('public/fonts'),
},
},
});