update for h5 specific port
Showing
2 changed files
with
5 additions
and
5 deletions
@@ -15,7 +15,7 @@ | @@ -15,7 +15,7 @@ | ||
15 | <link rel="dns-prefetch" href="//img12.static.yhbimg.com"> | 15 | <link rel="dns-prefetch" href="//img12.static.yhbimg.com"> |
16 | <link rel="dns-prefetch" href="//img13.static.yhbimg.com"> | 16 | <link rel="dns-prefetch" href="//img13.static.yhbimg.com"> |
17 | {{#if devEnv}} | 17 | {{#if devEnv}} |
18 | - <link rel="stylesheet" href="//localhost:8000/css/index.css"> | 18 | + <link rel="stylesheet" href="//localhost:5000/css/index.css"> |
19 | {{^}} | 19 | {{^}} |
20 | <link rel="stylesheet" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/index.css"> | 20 | <link rel="stylesheet" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/index.css"> |
21 | {{/if}} | 21 | {{/if}} |
@@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
29 | {{/if}} | 29 | {{/if}} |
30 | {{> footer}} | 30 | {{> footer}} |
31 | {{#if devEnv}} | 31 | {{#if devEnv}} |
32 | - <script src="//localhost:8000/{{module}}.{{page}}.js"></script> | 32 | + <script src="//localhost:5000/{{module}}.{{page}}.js"></script> |
33 | {{^}} | 33 | {{^}} |
34 | <script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script> | 34 | <script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script> |
35 | {{/if}} | 35 | {{/if}} |
@@ -167,16 +167,16 @@ gulp.task('webpack-dev-server', () => { | @@ -167,16 +167,16 @@ gulp.task('webpack-dev-server', () => { | ||
167 | 167 | ||
168 | new WebpackDevServer(webpack(devConfig), { | 168 | new WebpackDevServer(webpack(devConfig), { |
169 | contentBase: '.', | 169 | contentBase: '.', |
170 | - publicPath: '//localhost:8000/', | 170 | + publicPath: '//localhost:5000', |
171 | hot: true, | 171 | hot: true, |
172 | stats: { | 172 | stats: { |
173 | colors: true | 173 | colors: true |
174 | } | 174 | } |
175 | - }).listen(8000, 'localhost', (err) => { | 175 | + }).listen(5000, 'localhost', (err) => { |
176 | if (err) { | 176 | if (err) { |
177 | throw new gutil.PluginError('webpack-dev-server', err); | 177 | throw new gutil.PluginError('webpack-dev-server', err); |
178 | } | 178 | } |
179 | - gutil.log('[webpack-serve]', 'http://localhost:8000/'); | 179 | + gutil.log('[webpack-serve]', 'http://localhost:5000/'); |
180 | }); | 180 | }); |
181 | }); | 181 | }); |
182 | 182 |
-
Please register or login to post a comment