Skip to content

Instantly share code, notes, and snippets.

@iamkevingreen
Last active January 27, 2017 18:49
Show Gist options
  • Save iamkevingreen/c05194dd8c4dd2d5daf19d6fa5909b01 to your computer and use it in GitHub Desktop.
Save iamkevingreen/c05194dd8c4dd2d5daf19d6fa5909b01 to your computer and use it in GitHub Desktop.
<!-- index.html -->
<!DOCTYPE html>
<html>
<head>
<title>Electron React Auth Starter</title>
</head>
<body>
<div id="app"></div>
<script>
(function() {
const script = document.createElement('script');
script.src = process.env.ENV === 'development' ? 'http://localhost:8080/webpack-dev-server.js' : '';
document.write(script.outerHTML);
}());
</script>
<script>
(function() {
const script = document.createElement('script');
script.src = process.env.ENV === 'development' ? 'http://localhost:8080/build/app.bundle.js' : './build/app.bundle.js';
document.write(script.outerHTML);
}());
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment