Whalebird-desktop-client-ma.../src/index.ejs

23 lines
736 B
Plaintext
Raw Normal View History

2018-03-07 14:28:48 +01:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
2018-03-26 15:51:11 +02:00
<title>Whalebird</title>
2018-03-07 14:28:48 +01:00
<% if (htmlWebpackPlugin.options.nodeModules) { %>
<!-- Add `node_modules/` to global paths so `require` works properly in development -->
<script>
require('module').globalPaths.push('<%= htmlWebpackPlugin.options.nodeModules.replace(/\\/g, '\\\\') %>')
</script>
<% } %>
</head>
<body>
<div id="app"></div>
<!-- Set `__static` path to static files in production -->
<script>
if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
</script>
<!-- webpack builds are automatically injected -->
</body>
</html>