image-webpack-loader按照官方文档使用报错
老师,这是我在webpack.config.js中的配置:
test: /\.(png|gif|jpg|svg)$/i,
use: [
{
loader: 'url-loader',
options: {
name: 'assets/[name]-[hash:5].[ext]',
limit: 20000
}
},
{
loader: 'image-webpack-loader',
options: {
bypassOnDebug: true
}
}
]
命令行运行webpack报错如下:
查了半天没找到原因??