mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
fix dev build
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
@import '_themed_bootstrap_variables.scss';
|
||||||
|
|
||||||
/** Help Variables **/
|
/** Help Variables **/
|
||||||
$fa-fixed-width: 1.25rem;
|
$fa-fixed-width: 1.25rem;
|
||||||
$icon-padding: 1rem;
|
$icon-padding: 1rem;
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
|
@import '_themed_custom_variables.scss';
|
||||||
|
|
||||||
$content-spacing: $spacer * 1.5;
|
$content-spacing: $spacer * 1.5;
|
||||||
|
|
||||||
$button-height: $input-btn-padding-y * 2 + $input-btn-line-height + calculateRem($input-btn-border-width*2);
|
$button-height: $input-btn-padding-y * 2 + $input-btn-line-height + calculateRem($input-btn-border-width*2);
|
||||||
|
@@ -1,13 +1,7 @@
|
|||||||
@import '_functions.scss';
|
@import '_functions.scss';
|
||||||
@import '../../node_modules/bootstrap/scss/functions.scss';
|
@import '../../node_modules/bootstrap/scss/functions.scss';
|
||||||
|
|
||||||
//@import '$themePath$/bootstrap_variables.scss';
|
@import '_bootstrap_variables.scss';
|
||||||
@import '../../themes/mantis/styles/bootstrap_variables.scss';
|
|
||||||
|
|
||||||
@import 'bootstrap_variables.scss';
|
|
||||||
@import '../../node_modules/bootstrap/scss/variables.scss';
|
@import '../../node_modules/bootstrap/scss/variables.scss';
|
||||||
|
|
||||||
//@import '$themePath$/custom_variables.scss';
|
@import '_custom_variables.scss';
|
||||||
@import '../../themes/mantis/styles/custom_variables.scss';
|
|
||||||
|
|
||||||
@import 'custom_variables.scss';
|
|
||||||
|
0
themes/default/styles/_themed_custom_variables.scss
Normal file
0
themes/default/styles/_themed_custom_variables.scss
Normal file
@@ -1,2 +1,2 @@
|
|||||||
$banner-text-background: rgba(0, 0, 0, 0.35);
|
$banner-text-background: rgba(0, 0, 0, 0.35);
|
||||||
$banner-background-gradient-width: 300px;
|
$banner-background-gradient-width: 300px;
|
@@ -20,18 +20,13 @@ const theme = 'mantis';
|
|||||||
const themePath = path.normalize(path.join(__dirname, '..', 'themes', theme));
|
const themePath = path.normalize(path.join(__dirname, '..', 'themes', theme));
|
||||||
|
|
||||||
const globalCSSImports = [
|
const globalCSSImports = [
|
||||||
path.resolve(__dirname, '..', 'src/styles/_variables.scss'),
|
buildRoot('styles/_variables.scss'),
|
||||||
path.resolve(__dirname, '..', 'src/styles/_mixins.scss'),
|
buildRoot('styles/_mixins.scss'),
|
||||||
];
|
];
|
||||||
|
|
||||||
const themeReplaceOptions =
|
const themeReplaceOptions =
|
||||||
{
|
{
|
||||||
multiple: [
|
multiple: [
|
||||||
{
|
|
||||||
search: '$themePath$/',
|
|
||||||
replace: (themePath.length ? themePath + '/' : ''),
|
|
||||||
flags: 'g'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
search: '@import \'~/',
|
search: '@import \'~/',
|
||||||
replace: '@import \'' + projectRoot('./') + '/',
|
replace: '@import \'' + projectRoot('./') + '/',
|
||||||
@@ -62,7 +57,6 @@ const themedUse = (resource, extension) => {
|
|||||||
const themedPath = getThemedPath(resource, extension);
|
const themedPath = getThemedPath(resource, extension);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
//'debug-loader',
|
|
||||||
{
|
{
|
||||||
loader: 'string-replace-loader',
|
loader: 'string-replace-loader',
|
||||||
options: {
|
options: {
|
||||||
@@ -74,50 +68,14 @@ const themedUse = (resource, extension) => {
|
|||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
const cssLoaders = [
|
|
||||||
{
|
|
||||||
loader: 'raw-loader',
|
|
||||||
options: {
|
|
||||||
sourceMap: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
loader: 'postcss-loader',
|
|
||||||
options: {
|
|
||||||
sourceMap: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
loader: 'resolve-url-loader',
|
|
||||||
options: {
|
|
||||||
sourceMap: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
const scssLoaders = [
|
|
||||||
...cssLoaders,
|
|
||||||
{
|
|
||||||
loader: 'sass-loader',
|
|
||||||
options: {
|
|
||||||
sourceMap: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
loader: 'string-replace-loader',
|
|
||||||
options: themeReplaceOptions
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
projectRoot,
|
projectRoot,
|
||||||
buildRoot,
|
buildRoot,
|
||||||
theme,
|
theme,
|
||||||
|
themePath,
|
||||||
getThemedPath,
|
getThemedPath,
|
||||||
themedTest,
|
themedTest,
|
||||||
themedUse,
|
themedUse,
|
||||||
cssLoaders,
|
|
||||||
scssLoaders,
|
|
||||||
globalCSSImports,
|
globalCSSImports,
|
||||||
themeReplaceOptions
|
themeReplaceOptions
|
||||||
};
|
};
|
||||||
|
@@ -2,9 +2,10 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const {
|
const {
|
||||||
projectRoot,
|
projectRoot,
|
||||||
|
buildRoot,
|
||||||
globalCSSImports,
|
globalCSSImports,
|
||||||
cssLoaders,
|
themeReplaceOptions,
|
||||||
scssLoaders,
|
themePath,
|
||||||
themedTest,
|
themedTest,
|
||||||
themedUse
|
themedUse
|
||||||
} = require('./helpers');
|
} = require('./helpers');
|
||||||
@@ -41,28 +42,109 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
use: cssLoaders
|
use: [
|
||||||
|
{
|
||||||
|
loader: 'to-string-loader',
|
||||||
|
options: {
|
||||||
|
sourceMap: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
loader: 'css-loader',
|
||||||
|
options: {
|
||||||
|
sourceMap: true,
|
||||||
|
modules: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
loader: 'postcss-loader',
|
||||||
|
options: {
|
||||||
|
sourceMap: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.scss$/,
|
test: /\.scss$/,
|
||||||
exclude: [/node_modules/,
|
exclude: [
|
||||||
path.resolve(__dirname, '..', 'src/styles/_exposed_variables.scss'),
|
/node_modules/,
|
||||||
path.resolve(__dirname, '..', 'src/styles/_variables.scss')
|
buildRoot('styles/_exposed_variables.scss'),
|
||||||
|
buildRoot('styles/_variables.scss')
|
||||||
],
|
],
|
||||||
use: [
|
use: [
|
||||||
...scssLoaders,
|
{
|
||||||
|
loader: 'raw-loader',
|
||||||
|
options: {
|
||||||
|
sourceMap: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
loader: 'postcss-loader',
|
||||||
|
options: {
|
||||||
|
sourceMap: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
loader: 'resolve-url-loader',
|
||||||
|
options: {
|
||||||
|
sourceMap: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
loader: 'sass-loader',
|
||||||
|
options: {
|
||||||
|
sourceMap: true,
|
||||||
|
includePaths: [path.join(themePath, 'styles')]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'debug-loader',
|
||||||
{
|
{
|
||||||
loader: 'sass-resources-loader',
|
loader: 'sass-resources-loader',
|
||||||
options: {
|
options: {
|
||||||
resources: globalCSSImports
|
resources: globalCSSImports
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
loader: 'string-replace-loader',
|
||||||
|
options: themeReplaceOptions
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /^(_exposed)?_variables.scss$/,
|
test: /(_exposed)?_variables.scss$/,
|
||||||
exclude: /node_modules/,
|
exclude: [/node_modules/],
|
||||||
use: scssLoaders
|
use: [
|
||||||
|
{
|
||||||
|
loader: 'css-loader',
|
||||||
|
options: {
|
||||||
|
sourceMap: true,
|
||||||
|
modules: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
loader: 'postcss-loader',
|
||||||
|
options: {
|
||||||
|
sourceMap: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
loader: 'resolve-url-loader',
|
||||||
|
options: {
|
||||||
|
sourceMap: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
loader: 'sass-loader',
|
||||||
|
options: {
|
||||||
|
sourceMap: true,
|
||||||
|
includePaths: [path.join(themePath, 'styles')]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
loader: 'string-replace-loader',
|
||||||
|
options: themeReplaceOptions
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.html$/,
|
test: /\.html$/,
|
||||||
|
Reference in New Issue
Block a user