dev: change webpack config to use asset modules instead of custom loaders (#34649)
- asset modules are a new webpack 5 feature that handles inlining or extracting resources
This commit is contained in:
parent
a49f23abfd
commit
bae061a421
|
@ -129,7 +129,7 @@ const webpackConfig = {
|
||||||
{ test: /\.md$/, use: 'raw-loader' },
|
{ test: /\.md$/, use: 'raw-loader' },
|
||||||
{
|
{
|
||||||
test: /\.(png|jpe?g|gif|svg|eot|ttf|woff|woff2)$/,
|
test: /\.(png|jpe?g|gif|svg|eot|ttf|woff|woff2)$/,
|
||||||
loader: 'url-loader',
|
type: 'asset',
|
||||||
},
|
},
|
||||||
...styleConfig.rules,
|
...styleConfig.rules,
|
||||||
],
|
],
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
Significance: minor
|
||||||
|
Type: dev
|
||||||
|
|
||||||
|
change webpack config to use asset modules instead of custom loaders
|
Loading…
Reference in New Issue