Authored by ccbikai(👎🏻🍜)

dev info

... ... @@ -11,7 +11,7 @@ try {
let dev = JSON.parse(fs.readFileSync(path.join(__dirname, '../../.devhost')));
info.host = dev.host;
info.publicPath = `//${info.host}:${info.port}`;
info.publicPath = `http://${info.host}:${info.port}`;
} catch (e) {
console.error(e);
console.warn(`
... ...
... ... @@ -29,8 +29,8 @@ _.mergeWith(baseConfig, {
devServer: {
host: '0.0.0.0',
port: devInfo.port,
publicPath: devInfo.publicPath,
contentBase: [path.join(__dirname, './bundle/'), path.join(__dirname, '../')],
publicPath: baseConfig.output.publicPath,
hot: true,
inline: true,
compress: true,
... ...