Do not use js theme variables in sass (poor dev experience for now)

This commit is contained in:
Dominik Prokop
2019-02-08 14:06:06 +01:00
parent bb8bec5aaa
commit 71576a634e
10 changed files with 112 additions and 233 deletions
+1 -7
View File
@@ -8,7 +8,6 @@ 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: {
@@ -87,12 +86,7 @@ module.exports = merge(common, {
},
},
{
loader: 'sass-loader',
options: {
functions: {
"getThemeVariable($themeVar, $themeName: dark)": getThemeVariable
}
}
loader: 'sass-loader'
}
],
},