import { fileURLToPath, URL } from 'node:url' // 🔥 ДОБАВЛЯЕМ ИМПОРТ node:path import path from 'node:path' import { defineConfig } from 'vite' // https://vite.dev/config/ export default defineConfig({ plugins: [], resolve: { alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) }, }, // ----------------------------------------------------------------- // 🔥 ДОБАВЛЯЕМ ЭТОТ БЛОК! Явно разрешаем доступ к node_modules server: { fs: { allow: [ // Позволяем доступ к корневой папке проекта (для src) '.', // Позволяем доступ к папке node_modules, чтобы Vite мог найти стили path.resolve(__dirname, 'node_modules') ] } }, build: { outDir: path.resolve(__dirname, '../app/src/main/resources/htdocs') } // ----------------------------------------------------------------- })