Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
2c2c28c5
Commit
2c2c28c5
authored
Apr 25, 2023
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/buildForTest' into 'master'
feat:测试环境构建优化 See merge request
!89
parents
243070eb
836c3433
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
config.js
config/config.js
+2
-1
package.json
package.json
+1
-0
No files found.
config/config.js
View file @
2c2c28c5
...
...
@@ -62,7 +62,7 @@ export default {
targets
:
{
ie
:
11
,
},
devtool
:
'
hidden-source-map
'
,
devtool
:
process
.
env
.
SENTRY_ENV
===
'
test
'
?
false
:
'
hidden-source-map
'
,
// umi routes: https://umijs.org/zh/guide/router.html
routes
:
[
{
...
...
@@ -293,6 +293,7 @@ export default {
},
define
:
{
'
process.env.PRE_ENV
'
:
process
.
env
.
PRE_ENV
,
'
process.env.SENTRY_ENV
'
:
process
.
env
.
SENTRY_ENV
,
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION
:
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION
||
''
,
// preview.pro.ant.design only do not use in your production ; preview.pro.ant.design 专用环境变量,请不要在你的项目中使用它。
},
...
...
package.json
View file @
2c2c28c5
...
...
@@ -7,6 +7,7 @@
"analyze"
:
"cross-env ANALYZE=1 umi build"
,
"build"
:
"umi build"
,
"build:pre"
:
"cross-env PRE_ENV=pre umi build"
,
"build:test"
:
"cross-env SENTRY_ENV=test umi build"
,
"deploy"
:
"npm run site && npm run gh-pages"
,
"fetch:blocks"
:
"pro fetch-blocks && npm run prettier"
,
"format-imports"
:
"cross-env import-sort --write '**/*.{js,jsx,ts,tsx}'"
,
...
...
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