From a5d613123817b69ca38a8ff069efed83ca6f9372 Mon Sep 17 00:00:00 2001 From: Art Lowel Date: Wed, 5 Jun 2019 18:25:51 +0200 Subject: [PATCH] switch to relative theme paths for windows support --- webpack/helpers.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack/helpers.js b/webpack/helpers.js index 8bc12495ce..9a77ebbd0d 100644 --- a/webpack/helpers.js +++ b/webpack/helpers.js @@ -58,6 +58,8 @@ else { themePath = srcPath; } +const relativeThemePath = path.relative(srcPath, themePath); + const globalCSSImports = (env) => { return [ buildRoot('styles/_variables.scss', env), buildRoot('styles/_mixins.scss', env), @@ -66,7 +68,7 @@ const globalCSSImports = (env) => { return [ const getThemedPath = (componentPath, ext) => { const parsedPath = path.parse(componentPath); const relativePath = path.relative(srcPath, parsedPath.dir); - return path.join(themePath, relativePath, `${parsedPath.name}.${ext}`); + return path.join(relativeThemePath, relativePath, `${parsedPath.name}.${ext}`); }; const themedTest = (origPath, extension) => {