first commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import { fileURLToPath, URL } from 'node:url';
|
||||
|
||||
const root = fileURLToPath(new URL('.', import.meta.url));
|
||||
|
||||
export default defineConfig({
|
||||
root,
|
||||
base: '/static/planner/dist/',
|
||||
publicDir: false,
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 5173,
|
||||
strictPort: true,
|
||||
// The Vite server is development-only; accept the Django origin in use.
|
||||
cors: false,
|
||||
},
|
||||
build: {
|
||||
outDir: fileURLToPath(new URL('../planner/static/planner/dist', import.meta.url)),
|
||||
emptyOutDir: true,
|
||||
manifest: true,
|
||||
rollupOptions: {
|
||||
input: fileURLToPath(new URL('./src/main.js', import.meta.url)),
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user