# react-app-rewire-less

> 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-01) · MIT license · 0 weekly downloads

## Install

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

## 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-01 |
| First published | 2017-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | timarney |

## Links

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

## Dependencies (3)

- [npm](https://npm.io/package/npm.md) ^6.4.1
- [less](https://npm.io/package/less.md) ^3.0.2
- [less-loader](https://npm.io/package/less-loader.md) ^4.1.0

## Recent versions

- 2.1.3 (latest) — 2018-09-01
- 1.0.0-alpha.14f8d3d1 (canary) — 2017-03-20
- 2.1.2 — 2018-06-24
- 2.1.1 — 2018-03-06
- 2.1.0 — 2017-11-07
- 2.0.9 — 2017-11-02
- 2.0.8 — 2017-10-31
- 2.0.7 — 2017-08-28
- 2.0.6 — 2017-08-25
- 2.0.5 — 2017-08-24
- 2.0.4 — 2017-07-18
- 2.0.3 — 2017-05-22
- 2.0.1 — 2017-05-19
- 1.0.0 — 2017-03-20

## README

# Rewire create-react-app to use LESS!

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-less
```

# 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 rewireLess = require('react-app-rewire-less');

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

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