Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
aa6c50b7
authored
Mar 05, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加 static 演示环境的打包
parent
df5e2f48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
.env.static
+31
-0
package.json
+1
-0
No files found.
.env.static
0 → 100644
View file @
aa6c50b7
# 开发环境
NODE_ENV=production
VITE_DEV=false
# 请求路径
VITE_BASE_URL='http://localhost:48080'
# 上传路径
VITE_UPLOAD_URL='http://localhost:48080/admin-api/infra/file/upload'
# 接口前缀
VITE_API_BASEPATH=
# 接口地址
VITE_API_URL=/admin-api
# 是否删除debugger
VITE_DROP_DEBUGGER=true
# 是否删除console.log
VITE_DROP_CONSOLE=true
# 是否sourcemap
VITE_SOURCEMAP=false
# 打包路径
VITE_BASE_PATH=/admin-ui-vue3/
# 输出路径
VITE_OUT_DIR=dist-dev
package.json
View file @
aa6c50b7
...
...
@@ -11,6 +11,7 @@
"build:pro"
:
"node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode pro"
,
"build:dev"
:
"node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode dev"
,
"build:test"
:
"node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode test"
,
"build:static"
:
"node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode static"
,
"serve:pro"
:
"vite preview --mode pro"
,
"serve:dev"
:
"vite preview --mode dev"
,
"serve:test"
:
"vite preview --mode test"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment