mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
changed replace regexes to be windows compatible
This commit is contained in:
@@ -9,7 +9,6 @@ const projectRoot = (relativePath) => {
|
||||
const srcPath = projectRoot('src');
|
||||
|
||||
const buildRoot = (relativePath, env) => {
|
||||
console.log(env.aot);
|
||||
if (env.aot) {
|
||||
return path.resolve(projectRoot('./build'), relativePath);
|
||||
} else {
|
||||
@@ -68,8 +67,8 @@ const themeReplaceOptions =
|
||||
{
|
||||
multiple: [
|
||||
{
|
||||
search: '@import \'~/',
|
||||
replace: '@import \'' + projectRoot('./') + '/',
|
||||
search: '@import \'~/([^\']+)',
|
||||
replace: '@import \'' + path.join(projectRoot('./'), '$1'),
|
||||
flags: 'g'
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user