Fix svgo plugins
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/27162/head
parent
40a6a4296b
commit
97c3da3789
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue