<!DOCTYPE html>
<html>

<head>
  <% var opts = htmlWebpackPlugin.options; %>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <meta app-version="<%=opts.version%>" />
  <title><%=opts.title || 'Ovine'%></title>
  <link type="image/x-icon" rel="shortcut icon"
    href="<%= (opts.favIcon || '').replace(/^\/static\//, `${opts.publicPath}static/`) || `${opts.staticLibPath}core/favicon.ico`%>" />

  <% if(!opts.withoutPace) { %>
  <link rel="stylesheet" href="<%=opts.staticLibPath%>core/pace.css" />
  <script data-pace-options='{"elements": false, "ajax": false, "restartOnPushState": false }'
    src="<%=opts.staticLibPath%>core/pace.min.js"></script>
  <%}%>
  
  <% if(opts.dllVendorCss) { %>
  <link rel="stylesheet" href="<%=opts.dllVendorCss%>" />
  <% } %>
  <% if(!opts.isProd) { %>
  <script> var IS_WEBPACK_DEV_SERVER = true; var IS_SCSS_UPDATE = <%= opts.scssUpdate %>; </script>
  <% } %>
  <script id="themeScript"></script>
  <%= opts.head %>
</head>

<body>
  <%= opts.preBody %>
  <div id="modal-root" class="modal-root"></div>
  <div id="app-root" class="app-root"></div>
  <% if(opts.dllVendorJs) { var jsFiles = opts.dllVendorJs.split(','); %>
  <% for (var i = 0; i<jsFiles.length; i++){ %>
  <script src="<%= jsFiles[i] %>"></script>
  <% } %>
  <% } %>
  <%= opts.postBody %>
</body>

</html>