Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-05 10:30:53 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6e8890014c3fbd630564862b63d3e4feb8bb9b1c
6e889001
1 parent
2006acca
✨ feat(配置): 打包上传配置调整
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
package.json
vite.config.js
package.json
View file @
6e88900
...
...
@@ -6,7 +6,12 @@
"start"
:
"vite --host 0.0.0.0"
,
"build"
:
"vite build"
,
"build-ts"
:
"vue-tsc --noEmit && vite build"
,
"serve"
:
"vite preview"
"serve"
:
"vite preview"
,
"rm"
:
"rm -rf /Users/huyirui/program/itomix/git/isp/voice/"
,
"mv"
:
"mv voice/ /Users/huyirui/program/itomix/git/isp/"
,
"git"
:
"cd /Users/huyirui/program/itomix/git/isp/voice/ && git add -A && git commit -m '前端网页更新' && git pull && git push"
,
"update"
:
"ssh -p 22 itomix@ipadbiz.cn 'cd /opt/space-dev/voice && git pull'"
,
"publish"
:
"npm run build && npm run rm && npm run mv && npm run git && npm run update"
},
"dependencies"
:
{
"html2canvas"
:
"^1.4.1"
,
...
...
vite.config.js
View file @
6e88900
...
...
@@ -55,7 +55,7 @@ export default({ command, mode }) => {
// open: false, // 在服务器启动时自动在浏览器中打开应用程序. 当此值为字符串时, 会被当作URL的路径名.
proxy
:
{
// 代理
'/srv/'
:
{
target
:
'http://
space-dev
.onwall.cn'
,
target
:
'http://
voice
.onwall.cn'
,
changeOrigin
:
true
,
// rewrite: (path) => path.replace(/^\/api/, '')
},
...
...
@@ -66,7 +66,7 @@ export default({ command, mode }) => {
// watch: '', // 传递给 chokidar 的文件系统监视器选项。
},
build
:
{
outDir
:
'
shzl
'
,
// 指定输出路径(相对于项目根目录).
outDir
:
'
voice
'
,
// 指定输出路径(相对于项目根目录).
assetsDir
:
'static'
,
rollupOptions
:
{
output
:
{
...
...
Please
register
or
login
to post a comment