Set up a hot reload framework for running the front end.
This commit is contained in:
parent
13e07e42df
commit
637a246caa
|
@ -3,4 +3,5 @@ target/
|
|||
.env
|
||||
*.db
|
||||
|
||||
frontend/build
|
||||
frontend/elm-stuff
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
auto_https off
|
||||
}
|
||||
|
||||
http://localhost:8000
|
||||
|
||||
handle_errors {
|
||||
rewrite * /index.html
|
||||
file_server
|
||||
}
|
||||
|
||||
file_server
|
||||
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"targets": {
|
||||
"Captain's Log": {
|
||||
"inputs": [
|
||||
"src/Main.elm"
|
||||
],
|
||||
"output": "build/main.js"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Captains Log</title>
|
||||
<script type="text/javascript" src="/build/main.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
var app = Elm.Main.init();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue