cc-react-scripts
v1.5.3
Published
Clear Capital configuration and scripts for Create React App.
Readme
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
.scssfiles 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
scssfiles to the hashed name. - Babel reads the
styleNameattribute withinjsfiles, 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.
