Custom HTML Template

index.html is generated from a HTML template file, this is the default one we use:

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
  <noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
  </noscript>
  <div id="app"></div>
</body>
</html>

Generated assets will be injected into this file. If you want to use another template file, create one at public/index.html and it will be automatically used.

For advanced usage please check out the html option.

Last Updated: 10/26/2018, 4:08:18 PM