fix: also check theme node_modules folder as a css path

This commit is contained in:
Julian Lam
2022-12-05 15:36:56 -05:00
parent 7f5a9f19dd
commit 39ae02ade1

View File

@@ -187,6 +187,7 @@ async function getBundleMetadata(target) {
const themeId = (themeData['theme:id'] || 'nodebb-theme-persona');
const baseThemePath = path.join(nconf.get('themes_path'), (themeData['theme:type'] && themeData['theme:type'] === 'local' ? themeId : 'nodebb-theme-persona'));
paths.unshift(baseThemePath);
paths.unshift(`${baseThemePath}/node_modules`);
themeData.bootswatchSkin = skin || themeData.bootswatchSkin;
}