mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 20:51:12 +08:00
Implement index.html to src folder
This commit is contained in:
@@ -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"' })
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user