Commit 3a59777a authored by Cédric F.'s avatar Cédric F.

Minify JS

parent d1a4a157
Pipeline #5379008 (#) passed with stage
in 1 minute and 54 seconds
/elm-stuff/
/lifechart.js
/lifechart.min.js
......@@ -8,6 +8,7 @@ cache:
before_script:
- npm install -g elm
- npm install -g uglify-js
- elm --version
- elm-package install --yes
......
#!/bin/bash -eux
elm-make Lifechart.elm --warn --output lifechart.js
uglifyjs --mangle --screw-ie8 --output lifechart.min.js -- lifechart.js
......@@ -12,7 +12,7 @@
<div id="elm-lifechart-app">Loading...</div>
</div>
<script src="lifechart.js"></script>
<script src="lifechart.min.js"></script>
<script>
const elmLifechartDiv = document.querySelector("#elm-lifechart-app");
const elmLifechartApp = Elm.Lifechart.embed(elmLifechartDiv);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment