File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ var config = {
38
38
} ,
39
39
plugins : [
40
40
new HtmlWebpackPlugin ( {
41
- title : 'Typescript Webpack Starter'
41
+ title : 'Typescript Webpack Starter' ,
42
+ template : '!!ejs-loader!src/index.html'
42
43
} )
43
44
]
44
45
} ;
Original file line number Diff line number Diff line change 22
22
"license" : " ISC" ,
23
23
"devDependencies" : {
24
24
"css-loader" : " ^0.23.1" ,
25
+ "ejs-loader" : " ^0.3.0" ,
25
26
"expose-loader" : " ^0.7.1" ,
26
27
"html-loader" : " ^0.4.3" ,
27
28
"html-webpack-plugin" : " ^2.22.0" ,
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="">
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < meta http-equiv ="x-ua-compatible " content ="ie=edge ">
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
7
+
8
+ < title > < %= htmlWebpackPlugin.options.title %> </ title >
9
+
10
+ < meta name ="description " content ="<%= htmlWebpackPlugin.options.title %> ">
11
+
12
+ </ head >
13
+
14
+ < body >
15
+ < div > You have successfully started your Typescript application using Webpack</ div >
16
+ </ body >
17
+ </ html >
You can’t perform that action at this time.
0 commit comments