optimize and minify JS

This commit is contained in:
Aaron Bieber 2023-06-12 08:02:09 -06:00
parent d6c98b49c3
commit ccb77fae97
No known key found for this signature in database
5 changed files with 6 additions and 7245 deletions

View File

@ -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

View File

@ -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')

File diff suppressed because it is too large Load Diff

1
assets/main.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -47,6 +47,7 @@
rlwrap
sqlc
sqlite
nodePackages.uglify-js
];
};
});