html-webpack-plugin
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -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> |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
24116
7
250
1