mirror of
https://github.com/ForkAwesome/Fork-Awesome.git
synced 2024-12-24 20:41:32 +08:00
bump svgo version
This commit is contained in:
parent
f39a437375
commit
4fef70f727
1357
package-lock.json
generated
1357
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -26,7 +26,7 @@
|
||||
"all-contributors-cli": "^6.16.0",
|
||||
"less": "^3.11.3",
|
||||
"less-plugin-clean-css": "less/less-plugin-clean-css#master",
|
||||
"svgo": "^1.3.2"
|
||||
"svgo": "^3.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.3"
|
||||
|
@ -3,7 +3,7 @@ FA_FONTCUSTOM_OUTPUT_DIR = ./forkawesome
|
||||
|
||||
build:
|
||||
@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..."
|
||||
bundle exec fontcustom compile
|
||||
|
12
src/icons/svgo_config.js
Normal file
12
src/icons/svgo_config.js
Normal file
@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
plugins: [
|
||||
{
|
||||
name: "removeAttrs",
|
||||
params: {
|
||||
attrs: "(glyph-name|unicode)",
|
||||
}
|
||||
},
|
||||
"removeScriptElement",
|
||||
"removeRasterImages"
|
||||
]
|
||||
};
|
Loading…
Reference in New Issue
Block a user