1 parent
37a1fffb8d
commit
e93f9a02c2
9 files changed
+498
-1582
No files matched your search
@@ -7,7 +7,6 @@ const { existsSync, writeFileSync, readFileSync } = require('fs');
|
||||
const json5 = require('json5');
|
||||
const md5 = require('crypto-js/md5');
|
||||
const path = require('path');
|
||||
const { executablePath } = require('puppeteer');
|
||||
|
||||
const META_EXT = '.meta.json5';
|
||||
|
||||
@@ -118,7 +117,7 @@ function checkFileHash(file, hash) {
|
||||
|
||||
async function generateImage(inputImage, options, rootDir) {
|
||||
const opts = {
|
||||
launch: { executablePath: await executablePath() },
|
||||
launch: { channel: 'chrome' },
|
||||
...options
|
||||
};
|
||||
opts.outputFilePath = path.join(rootDir, opts.outputFilePath);
|
||||
|
||||
Reference in new issue
Block a user