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

html-webpack-injector

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-webpack-injector - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "html-webpack-injector",
"version": "1.0.1",
"version": "1.0.2",
"description": "Helps to inject chunks to head and body via HtmlWebpackPlugin",

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

@@ -5,3 +5,3 @@ [![npm][npm]][npm-url]

<h1>HTML Webpack Injector Plugin</h1>
<p>Plugin that simplifies injection of chunks into head and body using <a src="https://github.com/jantimon/html-webpack-plugin">HtmlWebpackPlugin</a></p>
<p>Plugin that simplifies injection of chunks into <b>head</b> and <b>body</b> using <a href="https://github.com/jantimon/html-webpack-plugin">HtmlWebpackPlugin</a></p>
</div>

@@ -23,14 +23,4 @@

<h2 align="center">Zero Config</h2>
The `html-webpack-injector` works without configuration.
- Just add `_head` after the name of the bundles you want to inject in the `head` section.
- All other bundles will be injected at the end of `body` tag.
<h2 align="center">Plugins</h2>
The `html-webpack-injector` is based on the [hooks](https://github.com/jantimon/html-webpack-plugin#events) provided by HtmlWebpackPlugin.
<h2 align="center">Usage</h2>
Suppose you want have 4 chunks that you want to inject in the html document using `HtmlWebpackPlugin`. Now out of these 4 chunks there is 1 chunk that you want to inject in the head.
Suppose you want have `2 chunks` that you want to inject in the html document using HtmlWebpackPlugin. If you want to inject `one chunk in head` and `one chunk in body` of the same html document.

@@ -69,3 +59,3 @@ **webpack.config.js**

<meta charset="utf-8">
<title>Webpack App</title>
<title>Archit's App</title>
<script type="text/javascript" src="index_head.bundle.js"></script></head>

@@ -72,0 +62,0 @@ </head>

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