tayronafoods-web/vite.config.js

21 lines
516 B
JavaScript
Raw Permalink Normal View History

2023-06-11 14:34:05 +02:00
import { fileURLToPath, URL } from 'node:url';
2023-06-10 16:59:02 +02:00
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
2023-09-03 14:53:17 +02:00
console.log('process.argv :>> ', process.argv);
const base = process.argv.includes('-beta') ? '/beta' : '/';
2023-06-10 16:59:02 +02:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
2023-09-03 14:53:17 +02:00
base,
2023-06-11 14:34:05 +02:00
resolve: {
alias: {
'@images': fileURLToPath(new URL('./src/assets/images',
import.meta.url)),
'@': fileURLToPath(new URL('./src',
import.meta.url)),
}
}
})