From a9e01fc2eb9e83c581e9e668dc822a31d0c1f632 Mon Sep 17 00:00:00 2001 From: codecalm Date: Tue, 22 Mar 2022 23:59:22 +0100 Subject: Fix #147 --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index 2b2c5d0f..5f501dc8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -61,7 +61,7 @@ if (fs.existsSync('./compile-options.json')) { throw "property excludeIcons is not an array"; } compileOptions.includeIcons = compileOptions.includeIcons.filter(function (icon) { - return tempOptions.excludeIcons.indexOf(icon) === -1; + return tempOptions.excludeIcons.indexOf(icon) === -1; }); } @@ -724,7 +724,7 @@ gulp.task('svg-to-react', gulp.series('clean-react', async function (cb) { fileName = path.basename(file, '.svg') + '.js', iconComponentName = componentName(file); - svgr(svgCode, { + await svgr(svgCode, { icon: false, svgProps: { width: '{size}', height: '{size}', strokeWidth: '{stroke}', stroke: '{color}' }, template: require('./.build/svgr-template') -- cgit v1.2.1