We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b44e7a9 + ef4f977 commit 6f8c91fCopy full SHA for 6f8c91f
index.js
@@ -10,6 +10,13 @@ module.exports = function (source) {
10
var fromBuild = options.fromBuild || true;
11
var themeName = options.theme || DEFAULT_NAME;
12
var themePath = path.resolve(themeName);
13
+
14
+ var themeExists = fs.existsSync(themePath);
15
+ if (!themeExists) {
16
+ // if themePath is not readable, fall back to default theme name
17
+ themePath = path.resolve(DEFAULT_NAME);
18
+ }
19
20
var heading = HEADING;
21
22
if (!fromBuild) {
0 commit comments