start frant 050228

This commit is contained in:
2026-05-18 20:18:28 +03:30
parent 26e59e03e0
commit cb65e5e601
33 changed files with 1493 additions and 425 deletions
+8 -4
View File
@@ -1,15 +1,19 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import tailwindcss from '@tailwindcss/vite';
import { fileURLToPath, URL } from 'node:url';
export default defineConfig({
plugins: [vue()],
export default defineConfig(({ mode }) => ({
build: {
outDir: mode === 'admin' ? 'dist-admin' : 'dist',
},
plugins: [vue(), tailwindcss()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
port: 5173,
port: mode === 'admin' ? 5174 : 5173,
},
});
}));