mirror of
https://github.com/duhanbalci/dreport.git
synced 2026-07-01 18:39:16 +00:00
36 lines
693 B
TypeScript
36 lines
693 B
TypeScript
import { defineConfig } from 'vite'
|
|
import { resolve } from 'path'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
build: {
|
|
rollupOptions: {
|
|
input: {
|
|
main: resolve(__dirname, 'index.html'),
|
|
'render-test': resolve(__dirname, 'render-test.html'),
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
dedupe: [
|
|
'@codemirror/state',
|
|
'@codemirror/view',
|
|
'@codemirror/language',
|
|
'@codemirror/autocomplete',
|
|
'@lezer/common',
|
|
'@lezer/lr',
|
|
'@lezer/highlight',
|
|
],
|
|
},
|
|
worker: {
|
|
format: 'es',
|
|
},
|
|
server: {
|
|
host: '0.0.0.0',
|
|
proxy: {
|
|
'/api': 'http://localhost:3001',
|
|
},
|
|
},
|
|
})
|