ContextPath added to dynamic urls and services

This commit is contained in:
Bahadır Sofuoğlu
2022-11-29 13:46:18 +03:00
parent 93ec659282
commit bbcebb99c5
21 changed files with 115 additions and 226 deletions

View File

@@ -4,11 +4,14 @@ import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
export default defineConfig(({ command }) => {
return {
plugins: [vue()],
base: command === 'serve' ? '' : '/sakai-vue/',
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
}
};
});