Replace file-loader with asset type
This commit is contained in:
parent
662b8cf348
commit
77ccce49a1
3 changed files with 3 additions and 40 deletions
|
@ -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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue