import {defineConfig} from 'vite'; import vue from '@vitejs/plugin-vue'; import path from 'node:path'; import {fileURLToPath} from 'node:url'; const root=path.dirname(fileURLToPath(import.meta.url)); export default defineConfig({root,envDir:false,plugins:[vue()],build:{outDir:'dist',emptyOutDir:true,sourcemap:false},server:{host:'127.0.0.1',port:8591,strictPort:true,fs:{allow:[root,path.resolve(root,'../node_modules')],deny:['**/.env','**/.env.*','**/.git','**/.git/**','**/.npmrc']}}});