Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html-replace-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-replace-webpack-plugin - npm Package Compare versions

Comparing version 2.2.3 to 2.2.4

5

index.js
function HtmlReplaceWebpackPlugin(options)
{
options = Array.isArray(options) ? options : [options]
options = options || [
{
pattern: undefined,
replacement: undefined
}]

@@ -10,0 +5,0 @@ options.forEach(function(option)

2

package.json
{
"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>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc