Skip to content

Commit

Permalink
Fix the theme loader issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 13, 2018
1 parent f1a0621 commit fa006f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/conf/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ const getThemePath = () => {
return resolveTool('../../theme/default');
};

const modPath = resolveTool('../../node_modules');
const modPath = resolveApp('node_modules');
function getExcludeFoldersRegExp() {
if (!FS.existsSync(modPath)) return [];
let regxExc = FS.readdirSync(modPath);
regxExc = regxExc.filter(item => item !== 'rdoc');
regxExc = regxExc.filter(item => !/rdoc(.*)/.test(item));

regxExc = regxExc.map((item) => {
let rgxPath = `node_modules${PATH.sep}${item}`;
if (PATH.sep === '\\') {
Expand Down

0 comments on commit fa006f1

Please sign in to comment.