Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dvhb/craco-pcss
https://github.com/dvhb/craco-pcss
Last synced: about 7 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/dvhb/craco-pcss
- Owner: dvhb
- License: mit
- Created: 2019-03-21T09:20:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T09:21:00.000Z (almost 6 years ago)
- Last Synced: 2024-12-05T19:37:37.508Z (18 days ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Craco pcss plugin
This plugin add support [PostCss](https://postcss.org/) `*.pcss` file extensions for [create-react-app](https://facebook.github.io/create-react-app/).
## Supported Versions
`craco-pcss` is tested with:
- `react-scripts`: `^2.1.5`
- `@craco/craco`: `^3.5.0`## Installation
First, follow the [`craco` Installation Instructions](https://github.com/sharegate/craco/blob/master/packages/craco/README.md##installation)
to install the `craco` package, create a `craco.config.js` file, and modify the scripts in your `package.json`.Then install `craco-pcss`:
```bash
$ npm i @dvhb/craco-pcss# OR
$ yarn add @dvhb/craco-pcss
```## Usage
Here is a complete `craco.config.js` configuration file that add supports of `*.pcss` files to `create-react-app`:
```js
const cracoPcss = require('@dvhb/craco-pcss');module.exports = {
plugins: [{ plugin: cracoPcss }]
};
```