From 2fc72898d3804eeaf569c82d5a17627c0fd1eb5c Mon Sep 17 00:00:00 2001 From: Konstantin Vulsonov Date: Fri, 21 Sep 2018 02:21:05 +0300 Subject: [PATCH] fix IDs creation --- src/app.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app.ts b/src/app.ts index 9d186c9..7012a4c 100644 --- a/src/app.ts +++ b/src/app.ts @@ -30,7 +30,6 @@ export class SvgIconset { svgClean(this.config.source, this.svgoPlugin) .then(optimizedResponse => { - let idx = 0; const ids = optimizedResponse.map(el => el.id); Promise.all(optimizedResponse.map(el => el.optimized)) .then(resFiles => { @@ -38,9 +37,8 @@ export class SvgIconset { createWriteStream(resultFile) .once('open', function (this: WriteStream) { try { - const data = resFiles.map(res => res.data.replace(/ res.data.replace(/${data.join('')}`); - idx++; this.end(); } catch (err) { console.log('ERROR', err);