Permalink
Browse files

Fix `config` not yet available (fixes #229)

  • Loading branch information...
webpro committed Jan 4, 2019
1 parent 9e91763 commit 9a4471c6f3b113221523c236692bcdde9ba09e65
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/options.js
@@ -34,7 +34,7 @@ const optionList = [
'puppeteerChromiumExecutable'
];

const getAssetPath = (asset, assetsDir = getOptions().assetsDir) => `${assetsDir}/${asset}`;
const getAssetPath = (asset, assetsDir = defaults.assetsDir) => `${assetsDir}/${asset}`;

const getAssetPaths = (assets, assetsDir) => {
return (typeof assets === 'string' ? assets.split(',') : []).map(assetPath => getAssetPath(assetPath, assetsDir));

0 comments on commit 9a4471c

Please sign in to comment.