Showing
2 changed files
with
2 additions
and
2 deletions
@@ -11,7 +11,7 @@ try { | @@ -11,7 +11,7 @@ try { | ||
11 | let dev = JSON.parse(fs.readFileSync(path.join(__dirname, '../../.devhost'))); | 11 | let dev = JSON.parse(fs.readFileSync(path.join(__dirname, '../../.devhost'))); |
12 | 12 | ||
13 | info.host = dev.host; | 13 | info.host = dev.host; |
14 | - info.publicPath = `//${info.host}:${info.port}`; | 14 | + info.publicPath = `http://${info.host}:${info.port}`; |
15 | } catch (e) { | 15 | } catch (e) { |
16 | console.error(e); | 16 | console.error(e); |
17 | console.warn(` | 17 | console.warn(` |
@@ -29,8 +29,8 @@ _.mergeWith(baseConfig, { | @@ -29,8 +29,8 @@ _.mergeWith(baseConfig, { | ||
29 | devServer: { | 29 | devServer: { |
30 | host: '0.0.0.0', | 30 | host: '0.0.0.0', |
31 | port: devInfo.port, | 31 | port: devInfo.port, |
32 | + publicPath: devInfo.publicPath, | ||
32 | contentBase: [path.join(__dirname, './bundle/'), path.join(__dirname, '../')], | 33 | contentBase: [path.join(__dirname, './bundle/'), path.join(__dirname, '../')], |
33 | - publicPath: baseConfig.output.publicPath, | ||
34 | hot: true, | 34 | hot: true, |
35 | inline: true, | 35 | inline: true, |
36 | compress: true, | 36 | compress: true, |
-
Please register or login to post a comment