Browse Source

Merge pull request #133 from loeck/master

Add title in index.ejs
master
Meriadec Pillet 7 years ago
committed by GitHub
parent
commit
b812218ae6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      src/index.ejs

15
src/index.ejs

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title><%= process.env.npm_package_productName %></title>
<meta charset="utf-8">
<style>
* {
@ -61,12 +62,12 @@
}
</style>
<script>
<% if (htmlWebpackPlugin.options.nodeModules) { %>
require('module').globalPaths.push(
'<%= htmlWebpackPlugin.options.nodeModules %>'.replace(/\\/g, '\\\\'),
)
<% } %>
require('source-map-support/source-map-support.js').install()
<% if (htmlWebpackPlugin.options.nodeModules) { %>
require('module').globalPaths.push(
'<%= htmlWebpackPlugin.options.nodeModules %>'.replace(/\\/g, '\\\\'),
)
<% } %>
require('source-map-support/source-map-support.js').install()
</script>
</head>
<body>
@ -93,7 +94,7 @@
let waitTime = 0
const PRELOAD_WAIT_TIME_MIN = 2e3
const interval = setInterval(() => waitTime += 250, 250)
const interval = setInterval(() => (waitTime += 250), 250)
window.onAppReady = () => {
const delay = PRELOAD_WAIT_TIME_MIN - waitTime

Loading…
Cancel
Save