mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 12:45:11 +08:00
Fix svgo plugins
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
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
Block a user