StickerAI-Front/vite.config.ts
2025-03-13 15:51:19 +03:00

18 lines
492 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
css: {
modules: {
localsConvention: 'camelCase',
generateScopedName: '[name]__[local]__[hash:base64:5]'
}
},
assetsInclude: ['**/*.json'], // Разрешаем импорт JSON файлов
json: {
stringify: true // Позволяет импортировать JSON как модули
}
});