19 lines
421 B
TypeScript
19 lines
421 B
TypeScript
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tsconfigPaths()],
|
|
server: {
|
|
port: 3001
|
|
},
|
|
css: {
|
|
postcss: './postcss.config.js', // Указываем путь к PostCSS конфигу
|
|
preprocessorOptions: {
|
|
scss: {
|
|
silenceDeprecations: ['legacy-js-api'],
|
|
}
|
|
},
|
|
},
|
|
})
|