Skip to content

Commit

Permalink
compile Elm in production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
christianp committed Dec 13, 2023
1 parent 05a5e39 commit d95185e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d95185e

Please sign in to comment.