cashier-mer/vite.config.ts

21 lines
375 B
TypeScript

import { defineConfig, loadEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default ({ mode }) => defineConfig({
plugins: [vue()],
base: './',
build: {
outDir: loadEnv(mode, process.cwd()).VITE_NOW_TYPE
},
server: {
port: '5175',
host: '0.0.0.0',
},
resolve: {
alias: {
'@': '/src'
}
}
})