nwb
nwb copied to clipboard
Automatic CSS Modules
css-loader now has config for automatically enabling CSS modules for .module.{ext} files:
createLoader(name('css'), {
loader: require.resolve('css-loader'),
options: {
// Apply postcss-loader to @imports
importLoaders: 1,
},
+ // Automatically enable css modules for .module.{ext} files
+ modules: {auto: true},
}),
Should we turn this on?
Sure, please add it by default.