1
0
Fork 0

Fix webpack config

This commit is contained in:
Chocobozzz 2021-08-17 14:31:30 +02:00
parent 1d4591fd9c
commit adb8809d43
No known key found for this signature in database
GPG key ID: 583A612D890159BE
3 changed files with 10 additions and 17 deletions

View file

@ -105,21 +105,23 @@ module.exports = function () {
{
test: /\.html$/,
use: 'raw-loader',
exclude: [
helpers.root('src/index.html'),
helpers.root('src/standalone/videos/embed.html'),
helpers.root('src/standalone/videos/test-embed.html')
]
],
type: 'asset/source'
},
{
test: /\.(jpg|png|gif)$/,
use: 'url-loader'
test: /\.(jpg|png|gif|svg)$/,
type: 'asset'
},
{ test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'url-loader?limit=10000&minetype=application/font-woff' },
{ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'file-loader' }
{
test: /\.(ttf|eot|woff2?)$/,
type: 'asset'
}
]
},