mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Update webpack config example to include module sass files
This commit is contained in:
parent
6d48bdd4cd
commit
798a3c52be
@ -186,10 +186,20 @@ module.exports = {
|
|||||||
|
|
||||||
// Make whatever fine-grained changes you need
|
// Make whatever fine-grained changes you need
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: /\.scss$/,
|
test: /.scss$/,
|
||||||
use: ['style-loader', 'css-loader', 'sass-loader'],
|
loader: [
|
||||||
include: path.resolve(__dirname, '../'),
|
'style-loader',
|
||||||
});
|
{
|
||||||
|
loader: 'css-loader',
|
||||||
|
options: {
|
||||||
|
modules: true, // to support files with '.module.scss' extenstions.
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
loader: 'sass-loader',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
})
|
||||||
|
|
||||||
// Return the altered config
|
// Return the altered config
|
||||||
return config;
|
return config;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user