mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
fix: add inlineLimit
This commit is contained in:
parent
372f103275
commit
e38f0be344
@ -114,7 +114,12 @@ export default async function getConfig({
|
|||||||
webpackConfig.module
|
webpackConfig.module
|
||||||
.rule('image')
|
.rule('image')
|
||||||
.test(/\.(png|jpe?g|gif|webp|ico)(\?.*)?$/)
|
.test(/\.(png|jpe?g|gif|webp|ico)(\?.*)?$/)
|
||||||
.type('asset/resource');
|
.type('asset')
|
||||||
|
.parser({
|
||||||
|
dataUrlCondition: {
|
||||||
|
maxSize: config.inlineLimit || 8 * 1024
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
webpackConfig.module
|
webpackConfig.module
|
||||||
.rule('svg')
|
.rule('svg')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user