Open OwnGhy opened 4 years ago
This is not business for underscore-template-loader, you should config in url-loader:
{
test: /\.(png|jp?g|gif)$/,
loader: 'url-loader',
options: {
limit: 8192,
name: config.assetsSubDirectory + '/image/[name].[hash:8].[ext]',
}
},
I want to have hash suffix of img path after webpack build, but I don‘t know how to config. I can only get the background images have hash suffix, but the
can't. How can I let the
path has the hash suffix? Please help me. Here is my webpack config: