https://github.com/fakundo/sass-replace-webpack-plugin
https://github.com/fakundo/sass-replace-webpack-plugin
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/fakundo/sass-replace-webpack-plugin
- Owner: fakundo
- Created: 2016-12-14T13:49:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-14T15:09:09.000Z (over 9 years ago)
- Last Synced: 2025-06-16T07:42:51.702Z (about 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#SASS Replace Webpack Plugin
[](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.