optimize and minify JS
This commit is contained in:
parent
d6c98b49c3
commit
ccb77fae97
4
Makefile
4
Makefile
@ -5,7 +5,9 @@ check:
|
||||
staticcheck ./...
|
||||
|
||||
elm: src/Main.elm
|
||||
elm make src/Main.elm --output=assets/main.js
|
||||
elm make src/Main.elm --optimize --output=assets/main.js
|
||||
uglifyjs assets/main.js --compress 'pure_funcs=[F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9],pure_getters,keep_fargs=false,unsafe_comps,unsafe' | uglifyjs --mangle --output assets/main.min.js
|
||||
rm -f assets/main.js
|
||||
|
||||
sqlc: queries.sql schema.sql
|
||||
sqlc generate
|
||||
|
@ -96,7 +96,7 @@
|
||||
<body>
|
||||
<div id="main"></div>
|
||||
|
||||
<script src="main.js"></script>
|
||||
<script src="main.min.js"></script>
|
||||
<script>
|
||||
var app = Elm.Main.init({
|
||||
node: document.getElementById('main')
|
||||
|
7243
assets/main.js
7243
assets/main.js
File diff suppressed because it is too large
Load Diff
1
assets/main.min.js
vendored
Normal file
1
assets/main.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user