# react-app-rewire-scss-loaders

> If you want to add more scss webpack loaders into your [create react app](https://github.com/facebook/create-react-app) without the need of ejecting in react, then [Rewire your app](https://github.com/timarney/react-app-rewired#how-to-rewire-your-create-r

Latest version **0.1.3** (published 2021-02-28) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2021-02-28 |
| First published | 2021-02-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Ivan Sanchez |
| Maintainers | isanchezdev |

## Links

- npm: https://www.npmjs.com/package/react-app-rewire-scss-loaders
- Repository: https://github.com/iSanchezDev/react-app-rewire-scss-loaders
- Issues: https://github.com/iSanchezDev/react-app-rewire-scss-loaders/issues
- npm.io page: https://npm.io/package/react-app-rewire-scss-loaders

## Recent versions

- 0.1.3 (latest) — 2021-02-28
- 0.1.2 — 2021-02-06
- 0.1.1 — 2021-02-06
- 0.1.0 — 2021-02-06

## README

# Add scss loaders to create-react-app

If you want to add more scss webpack loaders into your [create react app](https://github.com/facebook/create-react-app) without the need of ejecting in react, then [Rewire your app](https://github.com/timarney/react-app-rewired#how-to-rewire-your-create-react-app-project) and install this package that can include that extra loader for you.

# Install

```bash
yarn add react-app-rewired react-app-rewire-scss-loaders -D
npm install react-app-rewired react-app-rewire-scss-loaders --save-dev
```

# Add it to your project

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

Secondly (as example) if you want to share global scss variables across your project without importing files then try this example
[sass-resources-loader](https://github.com/spryker/sass-resources-loader).

```javascript
/* config-overrides.js */

const addRewireScssLoader = require("react-app-rewire-scss-loaders");

module.exports = function override(config, env) {
    
  config = addRewireScssLoader("sass-resources-loader", {
    resources: path.resolve(__dirname, "variables.scss"),
  })(config, env);

  return config;
};
```

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