Browse Source

bump svgo version

Thomas Clavier 1 year ago
parent
commit
4fef70f727
4 changed files with 126 additions and 750 deletions
  1. 112 748
      package-lock.json
  2. 1 1
      package.json
  3. 1 1
      src/icons/Makefile
  4. 12 0
      src/icons/svgo_config.js

File diff suppressed because it is too large
+ 112 - 748
package-lock.json


+ 1 - 1
package.json

@@ -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"

+ 1 - 1
src/icons/Makefile

@@ -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 - 0
src/icons/svgo_config.js

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

Some files were not shown because too many files changed in this diff