# sass-replace-webpack-plugin

> SASS Replace Webpack Plugin

Latest version **1.0.2** (published 2016-12-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install sass-replace-webpack-plugin
pnpm add sass-replace-webpack-plugin
yarn add sass-replace-webpack-plugin
bun add sass-replace-webpack-plugin
```

## 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 | 1.0.2 |
| Published | 2016-12-14 |
| First published | 2016-12-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Roman Samoylov |
| Maintainers | fakundo |
| Keywords | webpack, sass, plugin, replace |

## Links

- npm: https://www.npmjs.com/package/sass-replace-webpack-plugin
- Repository: https://github.com/fakundo/sass-replace-webpack-plugin
- Homepage: https://github.com/fakundo/sass-replace-webpack-plugin#readme
- Issues: https://github.com/fakundo/sass-replace-webpack-plugin/issues
- npm.io page: https://npm.io/package/sass-replace-webpack-plugin

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-12-14
- 1.0.1 — 2016-12-14
- 1.0.0 — 2016-12-14

## README

#SASS Replace Webpack Plugin

[![npm](https://img.shields.io/npm/v/sass-replace-webpack-plugin.svg?maxAge=2592000)](https://www.npmjs.com/package/sass-replace-webpack-plugin)

Replaces SASS files like NormalModuleReplacementPlugin.

### Installation
```
npm install sass-replace-webpack-plugin
```

### Usage

webpack.config.js

```js
...
plugins: [
  new SassReplaceWebpackPlugin(regexp, replacer);
]
...
```

### Constructor parameters

- **`regexp`** `{RegExp}` - Regular expression to test path
- **`replacer`** `{String|Function}` - Path to the new resource. If new path is relative, it is relative to the previous resource.

---
_Source: https://npm.io/package/sass-replace-webpack-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
