Add html template with react-root for the js to render into

pull/57/head
Will Piers 2016-09-16 15:16:48 -07:00 committed by Chris Goller
parent c528d1186e
commit 8525144618
3 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>InfluxEnterprise</title>
</head>
<body>
<div id='react-root'></div>
</body>
</html

View File

@ -68,7 +68,10 @@ module.exports = {
//
new webpack.IgnorePlugin(/xhr2/),
new ExtractTextPlugin("style.css"),
new HtmlWebpackPlugin(),
new HtmlWebpackPlugin({
template: path.resolve(__dirname, '..', 'src', 'index.template.html'),
inject: 'body',
}),
],
postcss: require('./postcss'),
target: 'web',

View File

@ -70,7 +70,10 @@ var config = {
},
}),
new ExtractTextPlugin("style.css"),
new HtmlWebpackPlugin(),
new HtmlWebpackPlugin({
template: path.resolve(__dirname, '..', 'src', 'index.template.html'),
inject: 'body',
}),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false