Skip to content

Commit 523d6e9

Browse files
authored
Revert "Remove CSS modules docs (facebook#3832)" (facebook#3833)
This reverts commit 11f1aa0.
1 parent deffd04 commit 523d6e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/react-scripts/template/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
2424
- [Importing a Component](#importing-a-component)
2525
- [Code Splitting](#code-splitting)
2626
- [Adding a Stylesheet](#adding-a-stylesheet)
27+
- [Adding a CSS Modules stylesheet](#adding-a-css-modules-stylesheet)
2728
- [Post-Processing CSS](#post-processing-css)
2829
- [Adding a CSS Preprocessor (Sass, Less etc.)](#adding-a-css-preprocessor-sass-less-etc)
2930
- [Adding Images, Fonts, and Files](#adding-images-fonts-and-files)
@@ -515,7 +516,6 @@ In development, expressing dependencies this way allows your styles to be reload
515516

516517
If you are concerned about using Webpack-specific semantics, you can put all your CSS right into `src/index.css`. It would still be imported from `src/index.js`, but you could always remove that import if you later migrate to a different build tool.
517518

518-
<!---
519519
## Adding a CSS Modules stylesheet
520520

521521
This project supports [CSS Modules](https://github.com/css-modules/css-modules) alongside regular stylesheets using the **[name].module.css** file naming convention. CSS Modules allows the scoping of CSS by automatically creating a unique classname of the format **[filename]\_[classname]\_\_[hash]**.
@@ -562,7 +562,6 @@ No clashes from other `.error` class names
562562
```
563563

564564
**This is an optional feature.** Regular html stylesheets and js imported stylesheets are fully supported. CSS Modules are only added when explicitly named as a css module stylesheet using the extension `.module.css`.
565-
-->
566565

567566
## Post-Processing CSS
568567

0 commit comments

Comments
 (0)