Authored by biao

update for h5 specific port

... ... @@ -15,7 +15,7 @@
<link rel="dns-prefetch" href="//img12.static.yhbimg.com">
<link rel="dns-prefetch" href="//img13.static.yhbimg.com">
{{#if devEnv}}
<link rel="stylesheet" href="//localhost:8000/css/index.css">
<link rel="stylesheet" href="//localhost:5000/css/index.css">
{{^}}
<link rel="stylesheet" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/index.css">
{{/if}}
... ... @@ -29,7 +29,7 @@
{{/if}}
{{> footer}}
{{#if devEnv}}
<script src="//localhost:8000/{{module}}.{{page}}.js"></script>
<script src="//localhost:5000/{{module}}.{{page}}.js"></script>
{{^}}
<script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script>
{{/if}}
... ...
... ... @@ -167,16 +167,16 @@ gulp.task('webpack-dev-server', () => {
new WebpackDevServer(webpack(devConfig), {
contentBase: '.',
publicPath: '//localhost:8000/',
publicPath: '//localhost:5000',
hot: true,
stats: {
colors: true
}
}).listen(8000, 'localhost', (err) => {
}).listen(5000, 'localhost', (err) => {
if (err) {
throw new gutil.PluginError('webpack-dev-server', err);
}
gutil.log('[webpack-serve]', 'http://localhost:8000/');
gutil.log('[webpack-serve]', 'http://localhost:5000/');
});
});
... ...