Showing
3 changed files
with
3 additions
and
7 deletions
| ... | @@ -8,12 +8,7 @@ | ... | @@ -8,12 +8,7 @@ |
| 8 | "build": "vite build", | 8 | "build": "vite build", |
| 9 | "build-watch": "vite build --watch", | 9 | "build-watch": "vite build --watch", |
| 10 | "build-ts": "vue-tsc --noEmit && vite build", | 10 | "build-ts": "vue-tsc --noEmit && vite build", |
| 11 | - "serve": "vite preview", | 11 | + "serve": "vite preview" |
| 12 | - "rm": "rm -r /Users/huyirui/program/itomix/git/isp/f/voice", | ||
| 13 | - "mv": "mv voice/ /Users/huyirui/program/itomix/git/isp/f", | ||
| 14 | - "git": "cd /Users/huyirui/program/itomix/git/isp/f/voice && git add -A && git commit -m '前端网页更新' && git pull && git push", | ||
| 15 | - "update": "ssh -p 22 itomix@ipadbiz.cn 'cd /opt/voice/f/voice && git pull'", | ||
| 16 | - "publish": "npm run build && npm run rm && npm run mv && npm run git && npm run update" | ||
| 17 | }, | 12 | }, |
| 18 | "dependencies": { | 13 | "dependencies": { |
| 19 | "@vitejs/plugin-legacy": "^1.8.2", | 14 | "@vitejs/plugin-legacy": "^1.8.2", | ... | ... |
| ... | @@ -96,7 +96,7 @@ export default ({ command, mode }) => { | ... | @@ -96,7 +96,7 @@ export default ({ command, mode }) => { |
| 96 | entryFileNames: 'static/js/[name]-[hash].js', | 96 | entryFileNames: 'static/js/[name]-[hash].js', |
| 97 | assetFileNames: 'static/[ext]/[name]-[hash].[ext]', | 97 | assetFileNames: 'static/[ext]/[name]-[hash].[ext]', |
| 98 | }, | 98 | }, |
| 99 | - input: { // 多页面应用模式 | 99 | + input: { // 多页面应用模式, 打包时配置,运行配置要处理root |
| 100 | main: path.resolve(__dirname, 'index.html'), | 100 | main: path.resolve(__dirname, 'index.html'), |
| 101 | // mono1: path.resolve(__dirname, 'src/packages/mono1/index.html'), | 101 | // mono1: path.resolve(__dirname, 'src/packages/mono1/index.html'), |
| 102 | // mono2: path.resolve(__dirname, 'src/packages/mono2/index.html'), | 102 | // mono2: path.resolve(__dirname, 'src/packages/mono2/index.html'), | ... | ... |
-
Please register or login to post a comment