Skip to content

Commit

Permalink
Build JS file in dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Hill committed Nov 6, 2018
1 parent 4c4d120 commit b81f1d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
elm-stuff
# elm-repl generated files
repl-temp-*
dist
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
elm make src/Main.elm --output=dist/main.js

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<title>Main</title>
<link rel="stylesheet" href="styles.css">
<script src="main.js"></script>
<script src="dist/main.js"></script>
</head>
<body>
<script>var app = Elm.Main.init();</script>
Expand Down

0 comments on commit b81f1d0

Please sign in to comment.