aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorPaweł Kuna <1282324+codecalm@users.noreply.github.com>2022-04-11 21:26:27 +0200
committerGitHub <noreply@github.com>2022-04-11 21:26:27 +0200
commite97b3780337f6866534962eee1a73ce460590880 (patch)
tree8ce568b1f453420e6fd9c08ba8c862c7a7dcf737 /gulpfile.js
parentMerge pull request #226 from WinterSilence/patch-1 (diff)
parentAdd option `excludeOffIcons` in `gulpfile.js` (diff)
downloadtabler-icons-e97b3780337f6866534962eee1a73ce460590880.tar.xz
Merge pull request #227 from WinterSilence/patch-2
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"