mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
moved themes to separate folder
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const {
|
||||
join,
|
||||
resolve,
|
||||
normalize,
|
||||
} = require('path');
|
||||
|
||||
|
||||
@@ -8,8 +9,10 @@ function root(path) {
|
||||
return resolve(__dirname, '..', path);
|
||||
}
|
||||
|
||||
const theme = '';
|
||||
// const theme = 'mantis';
|
||||
// const theme = '';
|
||||
const theme = 'mantis';
|
||||
|
||||
const themePath = normalize(join(__dirname, '..', 'themes', theme));
|
||||
|
||||
const globalCSSImports = [
|
||||
resolve(__dirname, '..', 'src/styles/_variables.scss'),
|
||||
@@ -19,24 +22,10 @@ const globalCSSImports = [
|
||||
const themeReplaceOptions =
|
||||
{
|
||||
multiple: [
|
||||
{
|
||||
search: '$theme$.',
|
||||
replace: theme + (theme.length ? '.' : ''),
|
||||
|
||||
},
|
||||
{
|
||||
search: '$themePath$/',
|
||||
replace: (theme.length ? 'themes/' : ''),
|
||||
replace: (themePath.length ? themePath + '/' : ''),
|
||||
|
||||
},
|
||||
{
|
||||
search: '$theme$.',
|
||||
replace: (theme.length ? theme + '.' : ''),
|
||||
|
||||
},
|
||||
{
|
||||
search: '$themePath$/',
|
||||
replace: (theme.length ? 'themes/' : ''),
|
||||
}
|
||||
]
|
||||
};
|
||||
@@ -45,6 +34,7 @@ module.exports = {
|
||||
root: root,
|
||||
join: join,
|
||||
theme: theme,
|
||||
themePath: themePath,
|
||||
globalCSSImports: globalCSSImports,
|
||||
themeReplaceOptions: themeReplaceOptions
|
||||
};
|
||||
|
Reference in New Issue
Block a user