Files
teleport/svgo.config.mjs
T
Ryan ClarkandZac Bergquist 5c51eefd09 Optimize SVGs, do not inline resource icons into bundle (#56031)
* Optimize SVGs, do not inline resource icons into bundle

* Fix jest resolution for .svg?no-inline imports

* Update package.json

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

* Prettier

* Move to programmatic optimization for app icons

* Replace resource icons in place with optimized version

* Add license

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2025-06-26 14:03:36 +00:00

33 lines
967 B
JavaScript

/*
* Teleport
* Copyright (C) 2025 Gravitational, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
export default {
plugins: [
{
name: 'preset-default',
params: {
overrides: {
cleanupIds: {
minify: false,
},
},
},
},
],
};