Custom HTML Template

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

<!DOCTYPE html>
  <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>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
  <div id="app"></div>

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