1.0.2 • Published 7 years ago
sass-replace-webpack-plugin v1.0.2
#SASS Replace Webpack Plugin
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 pathreplacer
{String|Function}
- Path to the new resource. If new path is relative, it is relative to the previous resource.