18 lines
492 B
TypeScript
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 как модули
|
|
}
|
|
});
|