diff --git a/webpack/helpers.js b/webpack/helpers.js index 9a77ebbd0d..c4fcebe152 100644 --- a/webpack/helpers.js +++ b/webpack/helpers.js @@ -58,7 +58,7 @@ else { themePath = srcPath; } -const relativeThemePath = path.relative(srcPath, themePath); +const relativeThemePath = path.relative(projectRoot('./'), themePath); const globalCSSImports = (env) => { return [ buildRoot('styles/_variables.scss', env),