Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
wbx-PCAndMobi
pc
Commits
10463a21
Commit
10463a21
authored
Jan 08, 2021
by
Gakki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打包配置
parent
93ce6da3
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
2 deletions
+30
-2
webpack.prod.conf.js
build/webpack.prod.conf.js
+4
-0
prod.env.js
config/yangpu/prod.env.js
+4
-0
sit.env.js
config/yangpu/sit.env.js
+4
-0
main.js
src/main.js
+8
-0
getMicRouters.js
src/router/getMicRouters.js
+8
-0
api.js
src/server/api.js
+2
-2
No files found.
build/webpack.prod.conf.js
View file @
10463a21
...
...
@@ -31,6 +31,10 @@ if (process.env.NODE_ENV === 'sit') {
env
=
require
(
'../config/huangpu/sit.env'
)
}
else
if
(
process
.
env
.
NODE_ENV
===
'huangpu-prod'
)
{
env
=
require
(
'../config/huangpu/prod.env'
)
}
else
if
(
process
.
env
.
NODE_ENV
===
'yangpu-sit'
)
{
env
=
require
(
'../config/yangpu/sit.env'
)
}
else
if
(
process
.
env
.
NODE_ENV
===
'yangpu-prod'
)
{
env
=
require
(
'../config/yangpu/prod.env'
)
}
const
webpackConfig
=
merge
(
baseWebpackConfig
,
{
...
...
config/yangpu/prod.env.js
0 → 100644
View file @
10463a21
'use strict'
module
.
exports
=
{
NODE_ENV
:
'"yangpu-prod"'
}
config/yangpu/sit.env.js
0 → 100644
View file @
10463a21
'use strict'
module
.
exports
=
{
NODE_ENV
:
'"yangpu-sit"'
}
src/main.js
View file @
10463a21
...
...
@@ -221,6 +221,14 @@ case 'huangpu-prod':
system
=
micSystemsList
.
prod
break
case
'yangpu-sit'
:
system
=
micSystemsList
.
sit
break
case
'yangpu-prod'
:
system
=
micSystemsList
.
prod
break
default
:
// 当前仅可使用pudong / xuhui-sit/uat进行打包
system
=
micSystemsList
.
sit
break
...
...
src/router/getMicRouters.js
View file @
10463a21
...
...
@@ -34,6 +34,14 @@ async function GetRoutes(router) {
MicRouters
=
huangpu
break
case
'yangpu-sit'
:
MicRouters
=
huangpu
break
case
'yangpu-prod'
:
MicRouters
=
huangpu
break
default
:
// 当前仅可使用pudong / xuhui-sit/uat进行打包
MicRouters
=
xuhui
break
...
...
src/server/api.js
View file @
10463a21
...
...
@@ -62,8 +62,8 @@ case 'huangpu-prod':
default
:
// 默认环境下(开发环境)
// BASE_URL = 'http://31.0.161.39/apiv2'
// BASE_URL = 'http://211.136.105.193/apiv2'
BASE_URL
=
'http://xuhui.hm.omniview.pro/api/v2
'
//
BASE_URL = 'http://pudong.hm.omniview.pro/api/v2'
// BASE_URL = 'http://yangpu.hm.omniview.pro/api
'
BASE_URL
=
'http://pudong.hm.omniview.pro/api/v2'
// BASE_URL = 'http://yangpu-hm.omniview.pro/api/v2'
// MOCK_URL = 'https://yapi.omniview.pro/mock/278'
...
...
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