Skip to content

Commit

Permalink
Fix the file-loader setting to load images correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
NI committed Apr 26, 2020
1 parent 19a5715 commit 194de5a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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$/,
Expand Down

0 comments on commit 194de5a

Please sign in to comment.