cc-react-scripts

1.5.3 • Public • Published

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:

  1. All imported .scss files are by default treated as local modules.
  2. 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:

  1. Webpack is set up to convert all class names within scss files to the hashed name.
  2. Babel reads the styleName attribute within js files, and converts them to the hashed name.
  3. Since the js and the css classes now match, the styles get applied.

Please refer to the original documentation for everything else:

/cc-react-scripts/

    Package Sidebar

    Install

    npm i cc-react-scripts

    Weekly Downloads

    62

    Version

    1.5.3

    License

    BSD-3-Clause

    Unpacked Size

    128 kB

    Total Files

    46

    Last publish

    Collaborators

    • jonlu
    • jordanpapaleo
    • tahoerobbo