# react-app-rewire-stylus

> You might not need this rewire, Create React App added guide about how to add Less support to CRA without the need of ejecting. See [Adding a CSS Preprocessor](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/templa

Latest version **2.1.3** (published 2018-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-app-rewire-stylus
pnpm add react-app-rewire-stylus
yarn add react-app-rewire-stylus
bun add react-app-rewire-stylus
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.3 |
| Published | 2018-09-03 |
| First published | 2018-09-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ecomfe-core |

## Links

- npm: https://www.npmjs.com/package/react-app-rewire-stylus
- npm.io page: https://npm.io/package/react-app-rewire-stylus

## Dependencies (2)

- [stylus](https://npm.io/package/stylus.md) ^0.54.5
- [stylus-loader](https://npm.io/package/stylus-loader.md) ^3.0.2

## Recent versions

- 2.1.3 (latest) — 2018-09-03

## README

# Rewire create-react-app to use Stylus!

You might not need this rewire, Create React App added guide about how to add Less support to CRA without the need of ejecting. See [Adding a CSS Preprocessor](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-a-css-preprocessor-sass-less-etc) section of CRA guide. Also note, that their solution is based on compiling Less without using Webpack.

# Install

```bash
$ npm install --save react-app-rewire-stylus
```

# Add it to your project

* [Rewire your app](https://github.com/timarney/react-app-rewired#how-to-rewire-your-create-react-app-project) than modify `config-overrides.js`

```javascript
const rewireStylus = require('react-app-rewire-stylus');

/* config-overrides.js */
module.exports = function override(config, env) {
  config = rewireStylus(config, env);
  // with loaderOptions
  // config = rewireStylus.withLoaderOptions(someLoaderOptions)(config, env);
  return config;
}
```

---
_Source: https://npm.io/package/react-app-rewire-stylus · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
