1
0

switch to relative theme paths for windows support

This commit is contained in:
Art Lowel
2019-06-05 18:25:51 +02:00
parent fac7cc266e
commit a5d6131238

View File

@@ -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) => {