Skip to content

Commit

Permalink
Fix issue with sass-loader options
Browse files Browse the repository at this point in the history
  • Loading branch information
atarix83 committed Dec 7, 2020
1 parent 5db5e09 commit eed4585
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions webpack/webpack.common.ts
Original file line number Diff line number Diff line change
@@ -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');

Expand Down Expand Up @@ -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')]
}
}
},
{
Expand All @@ -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')]
}
}
}
]
Expand Down

0 comments on commit eed4585

Please sign in to comment.