Fix the file-loader setting to load images correctly

This commit is contained in:
NI
2020-04-26 17:48:45 +08:00
parent 19a57152c4
commit 194de5af00

View File

@@ -254,7 +254,15 @@ module.exports = {
},
{
test: /\.(gif|png|jpe?g|svg)$/i,
use: "file-loader"
use: [
{
loader: "file-loader",
options: {
name: '[contenthash].[ext]',
esModule: false
}
}
]
},
{
test: /\.js$/,