2022-05-06 20:43:02 +00:00
|
|
|
import { fileURLToPath, URL } from 'url'
|
|
|
|
|
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
2022-05-24 08:38:42 +00:00
|
|
|
export default defineConfig(({command, mode}) => {
|
|
|
|
return {
|
|
|
|
plugins: [vue()],
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
|
|
}
|
|
|
|
},
|
|
|
|
base: mode === "production" ? "/app/" : undefined
|
2022-05-06 20:43:02 +00:00
|
|
|
}
|
|
|
|
})
|