原因:
url-loader后面带了参数name(引入报错)
{
test: /\.
解决方案:去掉参数
{
test: /\.
或者
{
test: /\.css$/,
exclude: /node_modules/,
use: ExtractTextPlugin.extract({
fallback: "style-loader",
use: "css-loader?modules!postcss-loader"
})
}, {
test: /\.css$/,
include: /node_modules/,
use: ExtractTextPlugin.extract({
fallback: "style-loader",
use: "css-loader!postcss-loader"
})
},
{
test: /\.(svg|ttf|eot|woff)\??.*$/,
loader: "url-loader?limit=10000"
}
以上这篇解决webpack+开发者。