WIP Enable js defined theme to be used in SASS

This commit is contained in:
Dominik Prokop
2019-02-04 17:28:57 +01:00
parent 9e33f8b7c4
commit 7626ce9922
14 changed files with 506 additions and 123 deletions

View File

@ -8,6 +8,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlWebpackHarddiskPlugin = require('html-webpack-harddisk-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const IgnoreNotFoundExportPlugin = require("./IgnoreNotFoundExportPlugin.js");
const getThemeVariable = require("./getThemeVariable");
module.exports = merge(common, {
entry: {
@ -85,7 +86,14 @@ module.exports = merge(common, {
config: { path: __dirname + '/postcss.config.js' },
},
},
'sass-loader', // compiles Sass to CSS
{
loader: 'sass-loader',
options: {
functions: {
"getThemeVariable($themeVar, $themeName: dark)": getThemeVariable
}
}
}
],
},
{