We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to generate more optimized base64 representation of svg. Used like so
import svgToMiniDataURI from 'mini-svg-data-uri' { test: /\.svg$/, issuer: /\.css$/, type: 'asset', parser: { dataUrlCondition: { maxSize: 2048, }, }, generator: { dataUrl: (content: string) => svgToMiniDataURI(content), }, }, }
https://webpack.js.org/configuration/module/#rulegeneratordataurl
The text was updated successfully, but these errors were encountered:
Can I have a try?
Sorry, something went wrong.
@jerrykingxyz hi, has anyone been working on this?
@luhc228 thanks in advance /assign @luhc228
generator.dataUrl
miniSVGDataURI
webpack
rspack
luhc228
Successfully merging a pull request may close this issue.
What problem does this feature solve?
Allow to generate more optimized base64 representation of svg. Used like so
What does the proposed API of configuration look like?
https://webpack.js.org/configuration/module/#rulegeneratordataurl
The text was updated successfully, but these errors were encountered: