html-webpack-injector
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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> |
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
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
3096
67