1.1.2 • Published 4 years ago

craco-plugin-scoped-style v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

craco-plugin-scoped-css npm.io

This is a craco plugin that adds scoped css support to create-react-app version >= 2 (this package is part of react scoped css solution)

Installation

First, follow the craco Installation Instructions to install the craco package, create a craco.config.js file, and modify the scripts in your package.json.

Then install craco-plugin-scoped-css:

$ yarn add craco-plugin-scoped-css

# OR

$ npm i -S craco-plugin-scoped-css

Usage

Here is a complete craco.config.js configuration file that adds react-scoped-css to create-react-app:

module.exports = {
  plugins: [
    {
      plugin: require('craco-plugin-scoped-css'),
    },
  ],
}
1.1.2

4 years ago

1.1.1

4 years ago