我试图让使用webpack的反应/引导应用程序使用font-awesome字体。并且我收到以下错误(对于所有字体真棒字体也是如此:
GET http://localhost:30000/db812d8a70a4e88e888744c1c9a27e89.woff2 net::ERR_CONNECTION_REFUSED
我的webpack.config文件如下:
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: "http://localhost:30000/",
},
{
test: /\.less$/,
loader: "style!css!less",
},
{
test: /\.(css)$/,
loader: 'style!css'
},
{ test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "url-loader?limit=10000&minetype=application/font-woff" },
{ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: "file-loader" }
...
出了什么问题。