Skip to content

Commit

Permalink
stop parcel from destroying inline svgs
Browse files Browse the repository at this point in the history
- the thing tries to remove 'unnecessary' attributes during optimisation,
  but ends up removing many essential attributes like viewBox and what not
- this resulted in svg icons getting broken only in production build
  • Loading branch information
dvmarinoff committed Nov 30, 2022
1 parent be8974b commit 79faf81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .htmlnanorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"minifySvg": false
}

1 comment on commit 79faf81

@vercel
Copy link

@vercel vercel bot commented on 79faf81 Nov 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.