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