fix: vite config

This commit is contained in:
pk5ls20 2024-11-16 00:13:05 +08:00
parent 4a44062814
commit fa87f7c8c3
No known key found for this signature in database
GPG Key ID: 6370ED7A169F493A
2 changed files with 10 additions and 4 deletions

View File

@ -4,10 +4,10 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"lint": "eslint . --fix",
"dev": "vite --host 127.0.0.1",
"build": "vue-tsc -b && vite build",
"preview": "vite preview"
"webui:lint": "eslint . --fix",
"webui:dev": "vite --host 127.0.0.1",
"webui:build": "vue-tsc -b && vite build",
"webui:preview": "vite preview"
},
"dependencies": {
"eslint-plugin-prettier": "^5.2.1",

View File

@ -1,8 +1,14 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import path from 'path';
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
base: './',
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
});