Fix svgo plugins
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
40a6a4296b
commit
97c3da3789
2 changed files with 14 additions and 6 deletions
|
@ -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
|
// props set on the svg will override defaults
|
||||||
expandProps: "end",
|
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
|
* Forwards the React ref to the root SVG element
|
||||||
* Useful when using things like `asChild` in
|
* Useful when using things like `asChild` in
|
||||||
|
|
Loading…
Reference in a new issue