Last active
January 27, 2017 18:49
-
-
Save iamkevingreen/c05194dd8c4dd2d5daf19d6fa5909b01 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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