[英]jQuery animate scrollLeft works in every browser except Chrome
[英]Webpack Dev Server works on every browser except Chrome?
我已經使用以下設置設置了webpack開發服務器,它在Firefox和Safari上可以正常運行,但在Chrome上將無法運行。
我收到此消息:
無法訪問該網站
本地主機拒絕連接。 在Google中搜索localhost 3005 ERR_CONNECTION_REFUSED
webpack.config.js
const webpack = require('webpack');
const nodeEnv = process.env.NODE_ENV || "production";
module.exports = {
entry: {
filename: "./index.js"
},
output: {
filename: "./build/bundle.js"
},
module: {
loaders: [
{ test: /\.js$/,
exclude: /node_modules/,
loader: "babel-loader",
query: {
presets: ['es2015', 'react']
}
}
]
},
devServer: {
inline: true,
contentBase: "public",
port: 3005
}
}
我遇到了同樣的問題,並設法通過在hosts
文件上添加新的寄存器來解決此問題:
/etc/hosts
127.0.0.1 localhost
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.