cc-react-scripts
This package includes scripts and configuration used by Clear Capital for Create React App.
Breaking changes:
babel-plugin-react-css-modules
This boilerplate adds support for CSS-Modules with a scss
flavor.
What this means:
- All imported
.scss
files are by default treated as local modules. - Styles are applied slightly differently. PLEASE refer to the docs: https://github.com/gajus/babel-plugin-react-css-modules#example-transpilations
How it works in cc-react-scripts:
- Webpack is set up to convert all class names within
scss
files to the hashed name. - Babel reads the
styleName
attribute withinjs
files, and converts them to the hashed name. - Since the js and the css classes now match, the styles get applied.
Please refer to the original documentation for everything else:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.