diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2021-11-15 16:02:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-15 16:02:05 +0100 |
| commit | 56c61ba734904981385418e06ce0abd3014ccccd (patch) | |
| tree | 9450a9f5e034dedd1c84da1775662d5f4bb6f311 /searx/static/themes/simple/svg4web.svgo.js | |
| parent | c6dcedb911b0fc3c0982fcf8294a19389e5a2ac9 (diff) | |
| parent | 3c05530518dcc4f64724c1173a90f17d07030a09 (diff) | |
Merge pull request #503 from return42/fix-svg
[fix] ] Optimize SVG for WEB usage / CSP 'style-src self'
Diffstat (limited to 'searx/static/themes/simple/svg4web.svgo.js')
| -rw-r--r-- | searx/static/themes/simple/svg4web.svgo.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/searx/static/themes/simple/svg4web.svgo.js b/searx/static/themes/simple/svg4web.svgo.js new file mode 100644 index 000000000..5b985adfe --- /dev/null +++ b/searx/static/themes/simple/svg4web.svgo.js @@ -0,0 +1,19 @@ +/** + * @license + * SPDX-License-Identifier: AGPL-3.0-or-later + * + * svgo config: Optimize SVG for WEB usage + */ + +module.exports = { + plugins: [ + { + name: 'preset-default', + }, + // make diff friendly + 'sortAttrs', + // Optimize SVG for WEB usage + 'convertStyleToAttrs', + 'removeXMLNS' + ], +}; |