Fix the file-loader setting to load images correctly
This commit is contained in:
@@ -254,7 +254,15 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(gif|png|jpe?g|svg)$/i,
|
test: /\.(gif|png|jpe?g|svg)$/i,
|
||||||
use: "file-loader"
|
use: [
|
||||||
|
{
|
||||||
|
loader: "file-loader",
|
||||||
|
options: {
|
||||||
|
name: '[contenthash].[ext]',
|
||||||
|
esModule: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
|
|||||||
Reference in New Issue
Block a user