nwb icon indicating copy to clipboard operation
nwb copied to clipboard

Automatic CSS Modules

Open insin opened this issue 4 years ago • 1 comments

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?

insin avatar May 03 '20 01:05 insin

Sure, please add it by default.

HongJheLi avatar Jun 28 '21 00:06 HongJheLi