From eed458569f2d9ac0ef1e6cae162e7f5b8da07d73 Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Mon, 7 Dec 2020 14:28:57 +0100 Subject: [PATCH] Fix issue with sass-loader options --- webpack/webpack.common.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/webpack/webpack.common.ts b/webpack/webpack.common.ts index 36e1f2e96b..48fb0808bc 100644 --- a/webpack/webpack.common.ts +++ b/webpack/webpack.common.ts @@ -1,8 +1,7 @@ -import { buildRoot, globalCSSImports, projectRoot, theme, themedTest, themedUse, themePath } from './helpers'; +import { buildRoot, globalCSSImports, projectRoot, themedTest, themedUse, themePath } from './helpers'; const CopyWebpackPlugin = require('copy-webpack-plugin'); const path = require('path'); -const fs = require('fs'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const ScriptExtPlugin = require('script-ext-html-webpack-plugin'); @@ -65,7 +64,9 @@ export const commonExports = { loader: 'sass-loader', options: { sourceMap: true, - includePaths: [projectRoot('./'), path.join(themePath, 'styles')] + sassOptions: { + includePaths: [projectRoot('./'), path.join(themePath, 'styles')] + } } }, { @@ -90,7 +91,9 @@ export const commonExports = { loader: 'sass-loader', options: { sourceMap: true, - includePaths: [projectRoot('./'), path.join(themePath, 'styles')] + sassOptions: { + includePaths: [projectRoot('./'), path.join(themePath, 'styles')] + } } } ]