Last active
March 22, 2022 21:40
-
-
Save mistyharsh/98ef68e1a6bf0b3ccc66f4f860f7db6a 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
module.exports = { | |
entry: { /* config */ }, | |
output: { /* config */ }, | |
module: { | |
rules: [ | |
// Regular css files | |
{ | |
test: /\.css$/, | |
loader: ['style-loader', 'css-loader'] | |
}, | |
// Transforming SCSS file into CSS string | |
{ | |
test: /\.scss$/, | |
use: [ | |
'raw-loader', | |
{ | |
loader: 'sass-loader', | |
options: { | |
includePaths: [path.resolve(__dirname, 'node_modules')] | |
} | |
} | |
] | |
}, | |
] | |
}, | |
plugins: [], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is line 12 a typo? Shouldn't it be
use
?