html-replace-webpack-plugin
Advanced tools
Comparing version 2.2.3 to 2.2.4
function HtmlReplaceWebpackPlugin(options) | ||
{ | ||
options = Array.isArray(options) ? options : [options] | ||
options = options || [ | ||
{ | ||
pattern: undefined, | ||
replacement: undefined | ||
}] | ||
@@ -10,0 +5,0 @@ options.forEach(function(option) |
{ | ||
"name": "html-replace-webpack-plugin", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "A Webpack plugin for replace HTML contents with custom pattern string or regex.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,3 +14,3 @@ # [html-replace-webpack-plugin] | ||
### In the `webpack.config.js` file as a plugin: | ||
### In your `webpack.config.js` file: | ||
```javascript | ||
@@ -28,3 +28,3 @@ var webpack = require('webpack') | ||
replacement: '`foo` has been replaced with `bar`' | ||
}, , | ||
}, | ||
{ | ||
@@ -68,3 +68,3 @@ pattern: '@@title', | ||
#### In the `src/index.html` file: | ||
#### In your `src/index.html` file: | ||
```html | ||
@@ -71,0 +71,0 @@ <!DOCTYPE html> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6913
48