Skip to content

Commit

Permalink
fix(css): ignore base64 images in styles
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepolischuk committed Oct 17, 2023
1 parent 98e3327 commit c45ccb6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/css/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,15 @@ module.exports = () => ({

vendorCSSLoaders = [
MiniCssExtractPlugin.loader,
'css-loader',
{
loader: 'css-loader',
options: {
url: {
// NOTE: игнорируем загрузку base64 изображений в стилях
filter: (url) => !/^data:image/.test(url)
}
}
},
'postcss-loader'
]
}
Expand Down

0 comments on commit c45ccb6

Please sign in to comment.