Skip to content

Commit e08ee6b

Browse files
author
Jonne Räsänen
committed
update readme to show sample usage for CSS Module class name template configuration option
1 parent 0bf20a1 commit e08ee6b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Add a `.env.` file with the desired features.
4444
- ```REACT_APP_SASS_MODULES=true``` - enable Sass modules
4545
- ```REACT_APP_LESS_MODULES=true``` - enable Less modules
4646
- ```REACT_APP_STYLUS_MODULES=true``` - enable Stylus modules
47-
- ```REACT_APP_CSS_MODULE_IDENT_NAME='module-[sha512:hash:base32]-[name]-[local]'``` - add custom CSS Module hash ident name
47+
- ```REACT_APP_CSS_MODULE_CLASSNAME_TEMPLATE='module-[sha512:hash:base32]-[name]-[local]'``` - add custom CSS Module hash ident name
4848

4949
Note: to use modules the file must be named in the following format: ```$name.module.$preprocessorName```.
5050

packages/react-scripts/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ The generated project comes with every option turned on by default, but you can
3535
- ```REACT_APP_SASS_MODULES``` - enable Sass modules
3636
- ```REACT_APP_LESS_MODULES``` - enable Less modules
3737
- ```REACT_APP_STYLUS_MODULES``` - enable Stylus modules
38+
- ```REACT_APP_CSS_MODULE_CLASSNAME_TEMPLATE='module-[sha512:hash:base32]-[name]-[local]'``` - add custom CSS Module hash ident name
3839

3940
Note: to use modules the file must be named in the following format: ```$name.module.$preprocessorName```.
4041

0 commit comments

Comments
 (0)