File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change
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 ) .
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"test" : " echo \" Error: no test specified\" && exit 1"
8
8
},
9
- "author" : " " ,
9
+ "author" : " storkyeh " ,
10
10
"license" : " MIT"
11
11
}
You can’t perform that action at this time.
0 commit comments