初始化
This commit is contained in:
23
vite.config.js
Normal file
23
vite.config.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import path from 'path'
|
||||
import svgLoader from 'vite-svg-loader'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
resolve:{
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, '/src'),
|
||||
},
|
||||
},
|
||||
base: process.env.ELECTRON=="true" ? './' : "",
|
||||
plugins: [vue(), svgLoader()],
|
||||
// server:{
|
||||
// fs:{
|
||||
// strict: false,
|
||||
// allow:[
|
||||
// '.'
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
})
|
||||
Reference in New Issue
Block a user