Fix svgo plugins
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
export default {
|
||||
plugins: [
|
||||
// generates a viewbox if missing
|
||||
{ name: "removeDimensions" },
|
||||
],
|
||||
};
|
||||
@@ -542,6 +542,20 @@ module.exports = (env, argv) => {
|
||||
},
|
||||
// props set on the svg will override defaults
|
||||
expandProps: "end",
|
||||
svgoConfig: {
|
||||
plugins: [
|
||||
{
|
||||
name: "preset-default",
|
||||
params: {
|
||||
overrides: {
|
||||
removeViewBox: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
// generates a viewbox if missing
|
||||
{ name: "removeDimensions" },
|
||||
],
|
||||
},
|
||||
/**
|
||||
* Forwards the React ref to the root SVG element
|
||||
* Useful when using things like `asChild` in
|
||||
|
||||
Reference in New Issue
Block a user