Add html template with react-root for the js to render into
parent
c528d1186e
commit
8525144618
|
@ -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
|
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue