Created
April 9, 2020 18:38
-
-
Save anfibiacreativa/935d806f47d17c404488f8885efed8bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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