bump svgo version

This commit is contained in:
Thomas Clavier 2023-11-29 23:38:17 +01:00
parent f39a437375
commit 4fef70f727
No known key found for this signature in database
GPG Key ID: 20CCE23E53E6E41A
4 changed files with 144 additions and 1229 deletions

1357
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,7 @@
"all-contributors-cli": "^6.16.0", "all-contributors-cli": "^6.16.0",
"less": "^3.11.3", "less": "^3.11.3",
"less-plugin-clean-css": "less/less-plugin-clean-css#master", "less-plugin-clean-css": "less/less-plugin-clean-css#master",
"svgo": "^1.3.2" "svgo": "^3.0.0"
}, },
"engines": { "engines": {
"node": ">=0.10.3" "node": ">=0.10.3"

View File

@ -3,7 +3,7 @@ FA_FONTCUSTOM_OUTPUT_DIR = ./forkawesome
build: build:
@echo "Cleaning up SVG files..." @echo "Cleaning up SVG files..."
npx svgo --quiet --pretty --config=svgo_config.json --folder=svg npx svgo --quiet --pretty --config=svgo_config.js --folder=svg
@echo "Compiling Icons into a ForkAwesome fonts..." @echo "Compiling Icons into a ForkAwesome fonts..."
bundle exec fontcustom compile bundle exec fontcustom compile

12
src/icons/svgo_config.js Normal file
View File

@ -0,0 +1,12 @@
module.exports = {
plugins: [
{
name: "removeAttrs",
params: {
attrs: "(glyph-name|unicode)",
}
},
"removeScriptElement",
"removeRasterImages"
]
};