Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
ccbikai(👎🏻🍜)
8 years ago
Commit
984bf87a4242a655c8abbacb4eb441354210236c
1 parent
98427428
测试环境不弹错误
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
public/build/dev-info.js
public/build/dev-info.js
View file @
984bf87
...
...
@@ -13,13 +13,15 @@ try {
info
.
host
=
dev
.
host
;
info
.
publicPath
=
`
http
:
//${info.host}:${info.port}/`;
}
catch
(
e
)
{
console
.
error
(
e
);
console
.
warn
(
`
推荐在项目主目录建一个
.
devhost
文件,内容为
{
"host"
:
"127.0.0.1"
if
(
!
process
.
env
.
NODE_ENV
)
{
console
.
error
(
e
);
console
.
warn
(
`
推荐在项目主目录建一个
.
devhost
文件,内容为
{
"host"
:
"127.0.0.1"
}
`
);
}
`
);
}
module
.
exports
=
info
;
...
...
Please
register
or
login
to post a comment