Home > @lynx-js/rspeedy > CssModules > auto
The auto option allows CSS modules to be automatically enabled based on their filenames.
Signature:
Given the various auto values, the behavior is described as follows:
true: enable CSS modules for all files matching /\.module\.\w+$/i.test(filename) RegExp.
false: disable CSS modules.
RegExp: enable CSS modules for all files matching the auto.test(filename) RegExp.
function: enable CSS modules based on the filter function.
See css-loader#auto for details.
Enable CSS module for *.module.css and shared/*.css: