Socket
Socket
Sign inDemoInstall

@vxna/mini-html-webpack-template

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vxna/mini-html-webpack-template - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

10

index.js

@@ -15,3 +15,3 @@ const {

function template(ctx) {
const { css, js, lang, title, head, body, container, minify } = ctx
let { css, js, lang, title, head = [], body = [], container, minify } = ctx

@@ -55,15 +55,15 @@ const doc = html`

function generateMetaTags(items) {
function generateMetaTags(items = []) {
return items.map(item => `<meta ${wrap(item)}>`)
}
function generateLinkTags(items) {
function generateLinkTags(items = []) {
return items.map(item => `<link ${wrap(item)}>`)
}
function generateScriptTags(items) {
function generateScriptTags(items = []) {
return items.map(item => `<script ${wrap(item)}></script>`)
}
function generateRawTags(items) {
function generateRawTags(items = [] || '') {
if (typeof items === 'string' || items instanceof String) {

@@ -70,0 +70,0 @@ return items

{
"name": "@vxna/mini-html-webpack-template",
"version": "0.0.5",
"version": "0.0.6",
"description": "Minimum viable template for mini-html-webpack-plugin",

@@ -5,0 +5,0 @@ "author": "@vxna",

@@ -82,9 +82,9 @@ # @vxna/mini-html-webpack-template

| Name | Type | Default | Description |
| :----------------: | :--------------: | :---------: | :-------------------------------------- |
| **`head.meta`** | `{Array}` | `undefined` | Array of objects with key + value pairs |
| **`head.links`** | `{Array}` | `undefined` | Array of objects with key + value pairs |
| **`head.scripts`** | `{Array}` | `undefined` | Array of objects with key + value pairs |
| Name | Type | Default | Description |
| :----------------: | :---------------: | :---------: | :-------------------------------------- |
| **`head.meta`** | `{Array}` | `undefined` | Array of objects with key + value pairs |
| **`head.links`** | `{Array}` | `undefined` | Array of objects with key + value pairs |
| **`head.scripts`** | `{Array}` | `undefined` | Array of objects with key + value pairs |
| **`head.raw`** | `{Array\|String}` | `undefined` | Raw document markup |
| **`body.scripts`** | `{Array}` | `undefined` | Array of objects with key + value pairs |
| **`body.scripts`** | `{Array}` | `undefined` | Array of objects with key + value pairs |
| **`body.raw`** | `{Array\|String}` | `undefined` | Raw document markup |

@@ -91,0 +91,0 @@

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