diff --git a/gulpfile.js b/gulpfile.js index 133c51b15..f48368e27 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -11,13 +11,11 @@ const createScreenshot = async (filePath) => { try { filePath = path.join(__dirname, filePath); - const fileName = path.basename(filePath, path.extname(filePath)); + const fileName = filePath.replace('.svg', ''); const htmlFilePath = path.join("file:", filePath); const browser = await puppeteer.launch(); const page = await browser.newPage(); - console.log('htmlFilePath', htmlFilePath); - await page.setViewport({ height: 100, width: 100 @@ -60,7 +58,7 @@ gulp.task('icons-sprite', function (cb) { let svg = `${svgContent}`; - fs.writeFileSync('.github/tabler-sprite.svg', svg); + fs.writeFileSync('dist/tabler-sprite.svg', svg); cb(); }); });