Created
August 5, 2015 14:33
-
-
Save geowarin/4e6089bc670d753f2453 to your computer and use it in GitHub Desktop.
Template index for the html-webpack-plugin and react
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
<!DOCTYPE html> | |
<html{% if(o.htmlWebpackPlugin.files.manifest) { %} manifest="{%= o.htmlWebpackPlugin.files.manifest %}"{% } %}> | |
<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"> | |
{% } %} | |
</head> | |
<body> | |
<div id="root"></div> | |
{% for (var chunk in o.htmlWebpackPlugin.files.chunks) { %} | |
<script src="{%=o.htmlWebpackPlugin.files.chunks[chunk].entry %}"></script> | |
{% } %} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment