Skip to content

Commit

Permalink
Scripts: Only use svgr/webpack in js files
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Walbø Johnsgård committed Aug 30, 2021
1 parent b72adf8 commit 4ff22ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,15 @@ const config = {
},
{
test: /\.svg$/,
issuer: /\.jsx?$/,
use: [ '@svgr/webpack', 'url-loader' ],
type: 'javascript/auto',
},
{
test: /\.svg$/,
issuer: /\.(sc|sa|c)ss$/,
type: 'asset/inline',
},
{
test: /\.(bmp|png|jpe?g|gif)$/i,
type: 'asset/resource',
Expand Down

0 comments on commit 4ff22ad

Please sign in to comment.