Showing
1 changed file
with
2 additions
and
0 deletions
@@ -13,6 +13,7 @@ try { | @@ -13,6 +13,7 @@ try { | ||
13 | info.host = dev.host; | 13 | info.host = dev.host; |
14 | info.publicPath = `http://${info.host}:${info.port}/`; | 14 | info.publicPath = `http://${info.host}:${info.port}/`; |
15 | } catch (e) { | 15 | } catch (e) { |
16 | + if (!process.env.NODE_ENV) { | ||
16 | console.error(e); | 17 | console.error(e); |
17 | console.warn(` | 18 | console.warn(` |
18 | 推荐在项目主目录建一个 .devhost 文件,内容为 | 19 | 推荐在项目主目录建一个 .devhost 文件,内容为 |
@@ -20,6 +21,7 @@ try { | @@ -20,6 +21,7 @@ try { | ||
20 | "host": "127.0.0.1" | 21 | "host": "127.0.0.1" |
21 | } | 22 | } |
22 | `); | 23 | `); |
24 | + } | ||
23 | } | 25 | } |
24 | 26 | ||
25 | module.exports = info; | 27 | module.exports = info; |
-
Please register or login to post a comment