Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-lession-demo
Overview
Overview
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
fukai
react-lession-demo
Commits
c1589258
Commit
c1589258
authored
Apr 17, 2020
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充dev文件
parent
bf557c69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
webpack.dev.js
webpack/webpack.dev.js
+60
-0
No files found.
webpack/webpack.dev.js
0 → 100644
View file @
c1589258
const
merge
=
require
(
'webpack-merge'
);
const
common
=
require
(
'./webpack.common.js'
);
const
webpack
=
require
(
'webpack'
);
const
path
=
require
(
'path'
);
module
.
exports
=
merge
(
common
,
{
devtool
:
'source-map'
,
devServer
:
{
hot
:
true
,
historyApiFallback
:
true
,
overlay
:
true
,
open
:
false
,
host
:
"0.0.0.0"
,
port
:
9001
,
disableHostCheck
:
true
,
proxy
:
{
'/eIBS/service/*'
:
{
//target: 'http://197.1.4.163:8888',
// target: 'http://197.1.4.195:8888',
// target: 'http://197.1.4.163:18080/ft-backend',
// target: 'http://197.1.4.195:18080/ft-backend',
// target: 'http://22.5.65.161:30001',
// target: 'http://22.6.107.179:8090',
//target:'http://127.0.0.1:8080/',
// target:'http://172.17.2.110:8090/',
// target:'http://172.17.2.110:9901/',
// target: 'http://172.17.2.110:8091/', // 服务器
// target:'http://172.17.2.109:8080/', //登哥电脑
// target:'http://172.17.2.119:80/', //本机连以太网ip地址
target
:
'http://10.150.2.190:7001/'
,
//测试环境02
changeOrigin
:
true
,
// pathRewrite: {
// '^/forfeit': '/'
// }
},
'/reactremit/*'
:{
// target:'http://127.0.0.1:9536/', // 本机服务器
// target:'http://172.17.2.124:8088/', // 刚哥电脑
// target:'http://172.17.2.110:8091/', // 服务器
// target:'http://172.17.2.109:8080/', //登哥电脑
// target:'http://172.17.2.119:80/', //本机连以太网ip地址
// target:'http://127.0.0.1:8081/',
// target:'http://172.17.2.130:80', // 超哥电脑
// target:'http://exam.letrd.com:8600/',
// target:'http://10.150.251.230:7001/', //测试环境01
target
:
'http://10.150.2.190:7001/'
,
//测试环境02
changeOrigin
:
true
,
},
},
},
plugins
:
[
new
webpack
.
NamedModulesPlugin
(),
new
webpack
.
HotModuleReplacementPlugin
(),
new
webpack
.
DefinePlugin
({
'process.env.NODE_ENV'
:
JSON
.
stringify
(
'development'
)
}),
]
});
console
.
log
(
"process.env.NODE_ENV 的值是(webpack.dev.js):"
+
process
.
env
.
NODE_ENV
)
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