1.0.2 • Published 7 years ago

sass-replace-webpack-plugin v1.0.2

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

#SASS Replace Webpack Plugin

npm

Replaces SASS files like NormalModuleReplacementPlugin.

Installation

npm install sass-replace-webpack-plugin

Usage

webpack.config.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.