Home > @lynx-js/rspeedy > CssLoaderModules > auto

CssLoaderModules.auto property

The auto option allows CSS modules to be automatically enabled based on their filenames.

Signature:

auto?: boolean | RegExp | ((filename: string) => boolean) | undefined;

Remarks

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.

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。