Skip to content

Instantly share code, notes, and snippets.

@anfibiacreativa
Created April 9, 2020 18:38
Show Gist options
  • Save anfibiacreativa/935d806f47d17c404488f8885efed8bc to your computer and use it in GitHub Desktop.
Save anfibiacreativa/935d806f47d17c404488f8885efed8bc to your computer and use it in GitHub Desktop.
// let's suppose here you have a general configuration that exports the path to sources like this
// get the node modules path
const nodemodules = path.join(cwd, 'node_modules');
const includePaths = [nodemodules, ]
module.exports = {
module: {
rules: [
{
test: /\.s[ac]ss$/i,
use: [
'style-loader',
'css-loader',
{
loader: 'sass-loader',
options: {
sassOptions: {
includePaths: includePaths,
},
},
},
],
},
],
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment