resolve fonts edit

This commit is contained in:
2023-10-31 03:17:11 +01:00
parent 1e4541ef0d
commit 94bfba2c49
-8
View File
@@ -2,19 +2,12 @@ import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue'; import vue from '@vitejs/plugin-vue';
import { VitePWA } from 'vite-plugin-pwa'; import { VitePWA } from 'vite-plugin-pwa';
import { resolve } from 'path';
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
server: { server: {
port: 2137, port: 2137,
}, },
resolve: {
alias: {
$fonts: resolve('/fonts'),
$images: resolve('/images'),
},
},
plugins: [ plugins: [
vue(), vue(),
VitePWA({ VitePWA({
@@ -23,7 +16,6 @@ export default defineConfig({
devOptions: { devOptions: {
suppressWarnings: true, suppressWarnings: true,
enabled: true, enabled: true,
type: 'classic',
}, },
workbox: { workbox: {