Javascript HMR-更新检查失败:错误:对url的清单请求超时
正在尝试设置HMR,但遇到以下错误: [HMR]更新检查失败:错误:对的清单请求 超时。 在XMLHttpRequest.request.onreadystatechange 获取网络::错误连接被拒绝 我的网页包配置如下所示:Javascript HMR-更新检查失败:错误:对url的清单请求超时,javascript,node.js,webpack,react-hot-loader,hot-module-replacement,Javascript,Node.js,Webpack,React Hot Loader,Hot Module Replacement,正在尝试设置HMR,但遇到以下错误: [HMR]更新检查失败:错误:对的清单请求 超时。 在XMLHttpRequest.request.onreadystatechange 获取网络::错误连接被拒绝 我的网页包配置如下所示: output: { // path: path.resolve(ROOT_PATH, 'dist'), publicPath: 'http://localhost:8080/', filename: '[name].bundle.js',
output: {
// path: path.resolve(ROOT_PATH, 'dist'),
publicPath: 'http://localhost:8080/',
filename: '[name].bundle.js',
chunkFilename: '[id].bundle.js'
},
mode: 'development',
devtool: 'cheap-module-source-map',
devServer: {
allowedHosts: ['.ec2.pin220.com'],
// 0.0.0.0 binds to all interfaces. The public port is 8080 which is served
// by nginx and proxied to the internal webpack port of 10005.
host: '0.0.0.0',
port: 10005,
hot: true,
hotOnly: true,
compress: true,
headers: {
'Access-Control-Allow-Origin': '*'
}
网页包输出如下所示: