diff --git a/readme.md b/readme.md index 212ea6a..fc901c3 100644 --- a/readme.md +++ b/readme.md @@ -240,7 +240,8 @@ const { addLessLoader } = require("customize-cra"); module.exports = override( addLessLoader({ strictMath: true, - noIeCompat: true + noIeCompat: true, + localIdentName: '[local]--[hash:base64:5]' // if you use CSS Modules, and custom `localIdentName`, default is '[local]--[hash:base64:5]'. }) ); ``` @@ -249,6 +250,8 @@ Check [Less document](http://lesscss.org/usage/#command-line-usage-options) for Once `less-loader` is enabled, you can import `.less` file in your project. +`.module.less` will use CSS Modules. + ### disableChunk Prevents the default static chunking, and forces the entire build into one file. See [this thread](https://github.com/facebook/create-react-app/issues/5306) for more info.