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);