-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
164 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/node_modules/ | ||
/dist/ | ||
example/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html{% if(o.htmlWebpackPlugin.files.manifest) { %} manifest="{%= o.htmlWebpackPlugin.files.manifest %}"{% } %}> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>{%=o.htmlWebpackPlugin.options.title || 'Webpack App'%}</title> | ||
{% if (o.htmlWebpackPlugin.files.favicon) { %} | ||
<link rel="shortcut icon" href="{%=o.htmlWebpackPlugin.files.favicon%}"> | ||
{% } %} | ||
{% for (var css in o.htmlWebpackPlugin.files.css) { %} | ||
<link href="{%=o.htmlWebpackPlugin.files.css[css] %}" rel="stylesheet"> | ||
{% } %} | ||
<title>{%=o.htmlWebpackPlugin.options.title %}</title> | ||
</head> | ||
<body> | ||
{% for (var chunk in o.htmlWebpackPlugin.files.chunks) { %} | ||
<script src="{%=o.htmlWebpackPlugin.files.chunks[chunk].entry %}"></script> | ||
{% } %} | ||
</body> | ||
</html> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
document.body.innerHTML = 'Hello world!'; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
var HtmlWebpackPlugin = require('..'); | ||
module.exports = { | ||
entry: './example.js', | ||
output: { | ||
path: __dirname + "/dist", | ||
publicPath: '/', | ||
filename: "bundle.js" | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
favicon: 'favicon.ico' | ||
}) | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// This is just a place holder - the real code lies inside | ||
// html-webpack-plugin-loader.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.