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:
2023-11-22 15:23:48 +00:00
parent 7e1457cbf8
commit b1c9a66f23
5 changed files with 74 additions and 46 deletions

View File

@ -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',
],
},