Skip to content

Commit

Permalink
Extract svg into own loader for easier overrides (#353)
Browse files Browse the repository at this point in the history
* Extract svg into own loader for easier overrides

* Add changeset
  • Loading branch information
filoxo authored Oct 24, 2022
1 parent 3a4ff75 commit a34fad7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fast-suns-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"webpack-config-single-spa": minor
---

Extract svg into own loader for easier overrides
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ function webpackConfigSingleSpa(opts) {
],
},
{
test: /\.(bmp|png|svg|jpg|jpeg|gif|webp)$/i,
test: /\.(bmp|png|jpg|jpeg|gif|webp)$/i,
exclude: /node_modules/,
type: "asset/resource",
},
// svg has its own loader to allow easier overriding (eg. svg-loader for React components)
{
test: /\.svg$/i,
exclude: /node_modules/,
type: "asset/resource",
},
Expand Down

0 comments on commit a34fad7

Please sign in to comment.