diff options
author | Anton <info@ensostudio.ru> | 2022-04-07 11:43:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-07 11:43:30 +0300 |
commit | 660de9000200bbd64ed23649c25302cdb55adb6c (patch) | |
tree | cd12afbfd55955722fd11311fbed5b598c6e7cd4 /gulpfile.js | |
parent | fix `antenna-bars-off` (diff) | |
download | tabler-icons-660de9000200bbd64ed23649c25302cdb55adb6c.tar.xz |
Add option `excludeOffIcons` in `gulpfile.js`
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 9 |
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" |