fixed tests

This commit is contained in:
lotte
2019-04-23 14:35:40 +02:00
committed by Art Lowel
parent 8a32777802
commit cfcf496cc1
4 changed files with 88 additions and 74 deletions

View File

@@ -2,40 +2,12 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
const path = require('path');
const {
root,
join
join,
globalCSSImports,
themeReplaceOptions
} = require('./helpers');
// const theme = '';
const theme = 'mantis';
const globalCSSImports = [
path.resolve(__dirname, '..', 'src/styles/_variables.scss'),
path.resolve(__dirname, '..', 'src/styles/_mixins.scss'),
];
const themeReplaceOptions =
{
multiple: [
{
search: '$theme$.',
replace: theme + (theme.length ? '.' : ''),
},
{
search: '$themePath$/',
replace: (theme.length ? 'themes/' : ''),
},
{
search: '$theme$.',
replace: (theme.length ? theme + '.' : ''),
},
{
search: '$themePath$/',
replace: (theme.length ? 'themes/' : ''),
}
]
};
module.exports = {
mode: 'development',
devtool: 'source-map',