From d95185ebb2820c4aacbc685ee76c5000e3446d82 Mon Sep 17 00:00:00 2001 From: Christian Lawson-Perfect Date: Wed, 13 Dec 2023 11:23:48 +0000 Subject: [PATCH] compile Elm in production mode --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c3adcb0..0f13736 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,6 @@ dist/sheet_element.js: dist/app.js src/sheet_element.js echo "})" >> $@ dist/app.js: src/Spreadsheet.elm $(ELMS) - -elm make $< --output=$@ 2> error.txt + -elm make --optimize $< --output=$@ 2> error.txt @sed -i "s/;}(this));$$/;}(globalThis));\n\n/" $@ # Fix the compiled JS so it uses globalThis, allowing it to be used as a module file @cat error.txt