aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2022-04-11 22:57:14 +0200
committercodecalm <codecalm@gmail.com>2022-04-11 22:57:14 +0200
commit94e0fc66f71b2ac55e0205730023f112964a2f57 (patch)
tree98d8fd57f31fecd2aec1351066b00e001979cefe /gulpfile.js
parent28 new icons: `activity-heartbeat`, `brand-adobe`, `brand-nextjs`, `brand-nux... (diff)
parentMerge pull request #227 from WinterSilence/patch-2 (diff)
downloadtabler-icons-94e0fc66f71b2ac55e0205730023f112964a2f57.tar.xz
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js
index a36fb97b..5cb1bf57 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -54,7 +54,7 @@ if (fs.existsSync('./compile-options.json')) {
}
})
}
-
+
if (typeof tempOptions.excludeIcons !== "undefined") {
if (!Array.isArray(tempOptions.excludeIcons)) {
throw "property excludeIcons is not an array"
@@ -64,6 +64,13 @@ if (fs.existsSync('./compile-options.json')) {
})
}
+ if (typeof tempOptions.excludeOffIcons !== "undefined" && tempOptions.excludeOffIcons) {
+ // Exclude `*-off` icons
+ compileOptions.includeIcons = compileOptions.includeIcons.filter(function (icon) {
+ return !icon.endsWith('-off');
+ })
+ }
+
if (typeof tempOptions.strokeWidth !== "undefined") {
if (typeof tempOptions.strokeWidth !== "string" && typeof tempOptions.strokeWidth !== "number") {
throw "property strokeWidth is not a string or number"