outer-script-html-webpack-plugin
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "outer-script-html-webpack-plugin", | ||
"version": "1.1.1", | ||
"description": "", | ||
"version": "1.1.2", | ||
"description": "Inject original js into html, without webpack compiler", | ||
"keywords": [ | ||
"html-webpack-plugin", | ||
"original", | ||
"scripts", | ||
"js", | ||
"inject", | ||
"html" | ||
], | ||
"main": "src/index.js", | ||
@@ -6,0 +14,0 @@ "scripts": { |
# outer-script-html-webpack-plugin | ||
Inject js into html without webpack compiler. | ||
Inject original js into html, without webpack compiler. | ||
Working with [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin). | ||
Working with [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) and [Webpack 3](https://github.com/webpack/webpack). | ||
@@ -33,3 +33,3 @@ # Install | ||
{ | ||
chunk: '/absolute/path/to/b.[chunkhash].js', | ||
chunk: '/absolute/path/to/b.js', | ||
filename: 'js/b.[chunkhash].js' | ||
@@ -45,7 +45,10 @@ } | ||
... | ||
// original a.js and b.js without compiling will be injected here | ||
<script type="text/javascript" src="/public/js/a.js"> | ||
<script type="text/javascript" src="/public/js/b.c57c86c1b956c3a01175.js"> | ||
// outer scripts will be injected before other scripts | ||
// 'outerScripts' will be injected before other scripts | ||
<script type="text/javascript" src="/public/others.js"> | ||
... | ||
``` | ||
# License | ||
MIT |
5401
53
4