hookehuyr

fix

......@@ -6,3 +6,4 @@ dist-ssr
.history
doc
.vscode
publish.sh
......
......@@ -8,12 +8,7 @@
"build": "vite build",
"build-watch": "vite build --watch",
"build-ts": "vue-tsc --noEmit && vite build",
"serve": "vite preview",
"rm": "rm -r /Users/huyirui/program/itomix/git/isp/f/voice",
"mv": "mv voice/ /Users/huyirui/program/itomix/git/isp/f",
"git": "cd /Users/huyirui/program/itomix/git/isp/f/voice && git add -A && git commit -m '前端网页更新' && git pull && git push",
"update": "ssh -p 22 itomix@ipadbiz.cn 'cd /opt/voice/f/voice && git pull'",
"publish": "npm run build && npm run rm && npm run mv && npm run git && npm run update"
"serve": "vite preview"
},
"dependencies": {
"@vitejs/plugin-legacy": "^1.8.2",
......
......@@ -96,7 +96,7 @@ export default ({ command, mode }) => {
entryFileNames: 'static/js/[name]-[hash].js',
assetFileNames: 'static/[ext]/[name]-[hash].[ext]',
},
input: { // 多页面应用模式
input: { // 多页面应用模式, 打包时配置,运行配置要处理root
main: path.resolve(__dirname, 'index.html'),
// mono1: path.resolve(__dirname, 'src/packages/mono1/index.html'),
// mono2: path.resolve(__dirname, 'src/packages/mono2/index.html'),
......