Skip to content

Instantly share code, notes, and snippets.

@mistyharsh
Last active March 22, 2022 21:40
Show Gist options
  • Save mistyharsh/98ef68e1a6bf0b3ccc66f4f860f7db6a to your computer and use it in GitHub Desktop.
Save mistyharsh/98ef68e1a6bf0b3ccc66f4f860f7db6a to your computer and use it in GitHub Desktop.
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: [],
};
@afroguy16
Copy link

Is line 12 a typo? Shouldn't it be use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment