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

html-webpack-plugin

Package Overview
Dependencies
Maintainers
2
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-webpack-plugin - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

CHANGES.md

4

index.js

@@ -303,5 +303,5 @@ 'use strict';

if (assets.manifest) {
html = html.replace(/(<html.*)(>)/i, function (match, start, end) {
html = html.replace(/(<html[^>]*)(>)/i, function (match, start, end) {
// Append the manifest only if no manifest was specified
if (match.test(/\smanifest\s*=/)) {
if (/\smanifest\s*=/.test(match)) {
return match;

@@ -308,0 +308,0 @@ }

{
"name": "html-webpack-plugin",
"version": "1.5.0",
"version": "1.5.1",
"description": "Simplifies creation of HTML files to serve your webpack bundles",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -125,5 +125,5 @@ HTML Webpack Plugin

new HtmlWebpackPlugin({
inject: true,
template: 'my-index.html',
title: 'Custom template',
title: 'Custom template',
template: 'my-index.html', // Load a custom template
inject: 'body' // Inject all scripts into the body
})

@@ -133,2 +133,4 @@ ]

`my-index.html`:
```html

@@ -135,0 +137,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