From fe354cb5156f064c8ff16b2368ff0cfa9cc8beae Mon Sep 17 00:00:00 2001 From: codecalm Date: Sun, 12 Apr 2020 17:37:18 +0200 Subject: headless mode on --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index ff6b8c2..9a5b6e6 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -23,7 +23,7 @@ const svgToPng = async (filePath, destination) => { filePath = path.join(__dirname, filePath); const htmlFilePath = path.join("file:", filePath); - const browser = await puppeteer.launch({headless: false}); + const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.setViewport({ @@ -51,7 +51,7 @@ const createScreenshot = async (filePath) => { const fileName = filePath.replace('.svg', ''); const htmlFilePath = path.join("file:", filePath); - const browser = await puppeteer.launch({headless: false}); + const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.setViewport({ -- cgit v1.2.1