24 lines
425 B
TypeScript
24 lines
425 B
TypeScript
import react from '@vitejs/plugin-react';
|
|
import { defineConfig, splitVendorChunkPlugin } from 'vite';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react({
|
|
babel: {
|
|
plugins: ['macros']
|
|
}
|
|
}),
|
|
splitVendorChunkPlugin()
|
|
],
|
|
build: {
|
|
manifest: true,
|
|
outDir: '../../InvenTree/web/static/web'
|
|
},
|
|
server: {
|
|
watch: {
|
|
usePolling: true
|
|
}
|
|
}
|
|
});
|