chore: split build into library and app modes for Docker and npm compatibility

This commit is contained in:
2026-03-03 09:25:51 +00:00
parent 5e4fa25fc4
commit 5e70b417db
7 changed files with 57 additions and 2 deletions

19
vite.config.app.js Normal file
View File

@@ -0,0 +1,19 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
export default defineConfig({
plugins: [vue()],
build: {
outDir: 'dist-app'
},
server: {
host: true,
allowedHosts: true,
headers: {
'Cache-Control': 'no-store, no-cache, must-revalidate, proxy-revalidate',
'Pragma': 'no-cache',
'Expires': '0',
}
}
})