работаем бля работаем

This commit is contained in:
2026-05-09 03:21:44 +06:00
parent f845777bac
commit 0b148c6a7d
169 changed files with 15816 additions and 1005 deletions

44
new-client/vite.config.ts Normal file
View File

@@ -0,0 +1,44 @@
import path from 'node:path'
import VuePlugin from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
import VueRouterPlugin from 'vue-router/vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [
VueRouterPlugin(),
VuePlugin(),
],
resolve: {
alias: [
{ find: '@app', replacement: path.resolve(__dirname, './src/app') },
{ find: '@pages', replacement: path.resolve(__dirname, './src/pages') },
{ find: '@widgets', replacement: path.resolve(__dirname, './src/widgets') },
{ find: '@features', replacement: path.resolve(__dirname, './src/features') },
{ find: '@entites', replacement: path.resolve(__dirname, './src/entites') },
{ find: '@shared', replacement: path.resolve(__dirname, './src/shared') },
{ find: '@', replacement: path.resolve(__dirname, './src') },
],
},
// css: {
// preprocessorOptions: {
// scss: {
// additionalData: `
// @use '${path.resolve(__dirname, './shared/styles/tokens.scss')}'' as *;
// `,
// },
// },
// },
server: {
port: 3000,
strictPort: true,
},
preview: {
port: 3000,
strictPort: true,
},
define: {
__API_BASE_URL__: JSON.stringify(import.meta.env?.API_BASE_URL || 'http://localhost:4000/chad'),
__COMMIT_SHA__: JSON.stringify(import.meta.env?.COMMIT_SHA || 'local'),
},
})