Skip to content

Commit

Permalink
fix: Limit asset/source loader rule to inline svg embeddings from @md…
Browse files Browse the repository at this point in the history
…i/svg

Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Nov 13, 2023
1 parent 88721e0 commit 6227bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ webpackConfig.resolve.fallback = {
// Load raw SVGs to be able to inject them via v-html
webpackRules.RULE_ASSETS.test = /\.(png|jpe?g|gif|woff2?|eot|ttf)$/
webpackRules.RULE_RAW_SVGS = {
test: /\.svg$/,
test: /@mdi\/svg/,
type: 'asset/source',
}

Expand Down

0 comments on commit 6227bbc

Please sign in to comment.