Skip to content

Commit

Permalink
configure webpack to load svg images
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Dec 30, 2020
1 parent f3d02de commit 0d41319
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ module.exports = {
},
],
},

// Load svg images
{
test: /\.svg$/,
exclude: /node_modules/,
use: [
{
loader: '@svgr/webpack',
},
],
},
],
},
resolve: {
Expand Down

0 comments on commit 0d41319

Please sign in to comment.