Merge pull request #59 from onlyling/master

update readme.md about addLessLoader
This commit is contained in:
Federico Zivolo
2019-02-22 09:10:21 -08:00
committed by GitHub

View File

@@ -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.