From 39ae02ade13c939d98ebd7af5ed78db027f506df Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 5 Dec 2022 15:36:56 -0500 Subject: [PATCH] fix: also check theme node_modules folder as a css path --- src/meta/css.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/meta/css.js b/src/meta/css.js index 41c32978ac..41051e731f 100644 --- a/src/meta/css.js +++ b/src/meta/css.js @@ -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; }