27 lines
544 B
JavaScript
27 lines
544 B
JavaScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "path";
|
|
import dynamicImport from 'vite-plugin-dynamic-import'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react({
|
|
babel: {
|
|
plugins: [
|
|
'babel-plugin-macros',
|
|
]
|
|
}
|
|
}),
|
|
dynamicImport()],
|
|
assetsInclude: ['**/*.md'],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.join(__dirname, 'src'),
|
|
'react-redux': 'react-redux/dist/react-redux.js',
|
|
},
|
|
},
|
|
build: {
|
|
outDir: 'build'
|
|
}
|
|
});
|