mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-09-01 01:52:00 +02:00
Add option excludeOffIcons
in gulpfile.js
This commit is contained in:
@@ -54,7 +54,7 @@ if (fs.existsSync('./compile-options.json')) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof tempOptions.excludeIcons !== "undefined") {
|
if (typeof tempOptions.excludeIcons !== "undefined") {
|
||||||
if (!Array.isArray(tempOptions.excludeIcons)) {
|
if (!Array.isArray(tempOptions.excludeIcons)) {
|
||||||
throw "property excludeIcons is not an array"
|
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 !== "undefined") {
|
||||||
if (typeof tempOptions.strokeWidth !== "string" && typeof tempOptions.strokeWidth !== "number") {
|
if (typeof tempOptions.strokeWidth !== "string" && typeof tempOptions.strokeWidth !== "number") {
|
||||||
throw "property strokeWidth is not a string or number"
|
throw "property strokeWidth is not a string or number"
|
||||||
|
Reference in New Issue
Block a user