web/satellite: disable removal of SVG viewBox

The webpack loader we use for SVGs uses an optimizer that strips the
viewBox attribute by default in order to reduce the byte count.
However, this prevents us from scaling SVGs using CSS. Because of this,
viewBox removal has been disabled.

Change-Id: I443eb83c762d3e0c84bb0fb6705e8f089d8a9405
This commit is contained in:
Jeremy Wharton 2023-04-13 11:10:51 -05:00
parent 34b2a369f7
commit eeeac5fa39

View File

@ -75,6 +75,11 @@ module.exports = {
.loader('vue-loader')
.end()
.use('vue-svg-loader')
.loader('vue-svg-loader');
.loader('vue-svg-loader')
.options({
svgo: {
plugins: [{ removeViewBox: false }],
},
});
},
};