Replace file-loader with asset type

This commit is contained in:
Bill Thornton 2021-10-23 01:24:14 -04:00
parent 662b8cf348
commit 77ccce49a1
3 changed files with 3 additions and 40 deletions

View file

@ -153,17 +153,15 @@ module.exports = {
},
{
test: /\.(png|jpg|gif|svg)$/i,
use: ['file-loader']
type: 'asset/resource'
},
{
test: /\.(woff|woff2|eot|ttf|otf)$/,
use: [
'file-loader'
]
type: 'asset/resource'
},
{
test: /\.(mp3)$/i,
use: ['file-loader']
type: 'asset/resource'
},
{
test: require.resolve('jquery'),