Implement index.html to src folder

This commit is contained in:
Max
2016-07-17 20:24:06 +02:00
committed by Christopher Chedeau
parent 86bdbf967c
commit 6cc901b9ad
3 changed files with 19 additions and 2 deletions

View File

@@ -74,7 +74,10 @@ module.exports = {
},
plugins: [
// TODO: infer from package.json?
new HtmlWebpackPlugin({ title: 'My React Project' }),
new HtmlWebpackPlugin({
inject: true,
template: path.resolve(__dirname, relative, 'src/index.html'),
}),
new webpack.DefinePlugin({ 'process.env.NODE_ENV': '"development"' })
]
};