Skip to content

Commit 23d5def

Browse files
committed
add README.md
1 parent df19b81 commit 23d5def

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Embed Scripts Inline for the HTML Webpack Plugin
2+
3+
## Installation
4+
5+
6+
```shell
7+
npm install --save-dev html-webpack-inline-plugin
8+
```
9+
10+
## Basic Usage
11+
Require the plugin in your webpack config:
12+
13+
```javascript
14+
var HtmlWebpackInlinePlugin = require('html-webpack-inline-plugin');
15+
```
16+
17+
Add the plugin to your webpack config as follows:
18+
19+
```javascript
20+
plugins: [
21+
new HtmlWebpackPlugin(),
22+
new HtmlWebpackInlinePlugin()
23+
]
24+
```
25+
26+
Add the tag to your html template as follows:
27+
28+
```html
29+
<!DOCTYPE html>
30+
<html>
31+
<head>
32+
<!-- inline-plugin path="web_modules/lib/lib.js"-->
33+
</head>
34+
<body>
35+
</body>
36+
</html>
37+
```
38+
39+
# License
40+
41+
This project is licensed under [MIT](https://github.com/jantimon/html-webpack-plugin/blob/master/LICENSE).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
9-
"author": "",
9+
"author": "storkyeh",
1010
"license": "MIT"
1111
}

0 commit comments

Comments
 (0)