2023-11-11 15:23:04 +01:00
|
|
|
import { fileURLToPath, URL } from 'node:url'
|
2023-11-11 18:44:07 +01:00
|
|
|
import path from 'path'
|
2023-11-11 15:23:04 +01:00
|
|
|
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
2023-11-11 18:44:07 +01:00
|
|
|
import { defineConfig } from 'vite'
|
2023-11-11 15:23:04 +01:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [vue()],
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
|
|
'~@/scss': fileURLToPath(new URL('./src/scss', import.meta.url)),
|
|
|
|
'~@/assets': fileURLToPath(new URL('./src/assets', import.meta.url))
|
|
|
|
}
|
|
|
|
},
|
|
|
|
server: {
|
|
|
|
port: 3000
|
|
|
|
},
|
|
|
|
build: {
|
|
|
|
outDir: path.resolve(__dirname, '../fittrackee/dist'),
|
|
|
|
emptyOutDir: true,
|
|
|
|
assetsDir: 'static'
|
|
|
|
}
|
|
|
|
})
|