mirror of
https://github.com/aleleba/create-react-component-library.git
synced 2025-07-21 12:08:22 -06:00
PR-665639: Update webpack.config.ts, webpack.cy.config.ts,
.storybook/main.js, and package.json to add support to sass modules.
This commit is contained in:
@ -56,7 +56,14 @@ export default {
|
||||
test: /\.(css|sass|scss)$/,
|
||||
use: [
|
||||
externalCss === true ? MiniCssExtractPlugin.loader : 'style-loader',
|
||||
'css-loader',
|
||||
{
|
||||
'loader': 'css-loader',
|
||||
'options': {
|
||||
modules: {
|
||||
auto: /\.module\.\w+$/i,
|
||||
}
|
||||
},
|
||||
},
|
||||
'sass-loader',
|
||||
],
|
||||
},
|
||||
|
Reference in New Issue
Block a user