mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
always use forward slashes in relative theme paths
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
const slash = require('slash');
|
||||
|
||||
const projectRoot = (relativePath) => {
|
||||
return path.resolve(__dirname, '..', relativePath);
|
||||
@@ -68,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(relativeThemePath, relativePath, `${parsedPath.name}.${ext}`);
|
||||
return slash(path.join(relativeThemePath, relativePath, `${parsedPath.name}.${ext}`));
|
||||
};
|
||||
|
||||
const themedTest = (origPath, extension) => {
|
||||
|
Reference in New Issue
Block a user