cashier-ERP/vite.config.ts

30 lines
512 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: '5178',
host: '0.0.0.0',
},
resolve: {
alias: {
'@': '/src'
}
},
css: {
loaderOptions: {
postcss: {
config: {
path: './postcss.config.js',
},
},
},
},
})