From 3919925cfa1279db5f11acc9b4a0067eddfaa7ae Mon Sep 17 00:00:00 2001 From: KaizIqbal <24286590+KaizIqbal@users.noreply.github.com> Date: Sat, 25 Jul 2020 17:10:30 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Cleanup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/index.ts b/src/index.ts index e9d1b1d..f16937e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,20 +1,3 @@ -import path from "path"; -import fs from "fs"; -import puppeteer from "puppeteer"; +import { bitmapsDir, svgs } from "./config"; -import { bitmapsPath } from "./config"; - -(async () => { - const browser = await puppeteer.launch({ - ignoreDefaultArgs: process.env.IS_LOCAL ? [" --single-process "] : [], - headless: true, - }); - const page = await browser.newPage(); - await page.goto("https://example.com"); - - if (!fs.existsSync(bitmapsPath)) fs.mkdirSync(bitmapsPath); - - await page.pdf({ path: path.resolve(bitmapsPath, "google.pdf") }); - - await browser.close(); -})(); +console.log(bitmapsDir, svgs);