Skip to content

Disable stripping viewBox #735

Answered by cellininicholas
tremby asked this question in Q&A
Jul 20, 2018 · 18 comments · 5 replies
Discussion options

You must be logged in to vote

This is what worked for me:
https://stackoverflow.com/a/70360615/1110814

use: {
   loader: '@svgr/webpack',
   options: {
      svgoConfig: {
         plugins: [{
            name: 'removeViewBox',
            active: false
         }]
      }
   }
}

Replies: 18 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Rhut-virani
Comment options

Answer selected by gregberge
You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@saltire
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@WesleyKapow
Comment options

@LiamWinterton
Comment options

@Natsunokazeme
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #142 on June 19, 2022 19:39.