Skip to content

Commit fa006f1

Browse files
committed
Fix the theme loader issue.
1 parent f1a0621 commit fa006f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/conf/path.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,12 @@ const getThemePath = () => {
7474
return resolveTool('../../theme/default');
7575
};
7676

77-
const modPath = resolveTool('../../node_modules');
77+
const modPath = resolveApp('node_modules');
7878
function getExcludeFoldersRegExp() {
7979
if (!FS.existsSync(modPath)) return [];
8080
let regxExc = FS.readdirSync(modPath);
81-
regxExc = regxExc.filter(item => item !== 'rdoc');
81+
regxExc = regxExc.filter(item => !/rdoc(.*)/.test(item));
82+
8283
regxExc = regxExc.map((item) => {
8384
let rgxPath = `node_modules${PATH.sep}${item}`;
8485
if (PATH.sep === '\\') {

0 commit comments

Comments
 (0)