From 01a9de5cfbcb56c836021f40a4e3887947eb89a5 Mon Sep 17 00:00:00 2001 From: Gunnar Ahlberg Date: Tue, 26 Jan 2021 09:45:27 +0100 Subject: [PATCH] Changed the uglify --output parameter The uglifyjs --output parameter gave an "ERROR: invalid option --output=elm.js" This commit changes the instructions to say --output elm.js in two relevant places --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8bfb0274d5..225c4bd909 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ This [generates production-optimized JS](https://elm-lang.org/blog/small-assets- (Make sure you have [Uglify](http://lisperator.net/uglifyjs/) installed first, e.g. with `npm install --global uglify-js`) ``` -$ uglifyjs elm.js --compress 'pure_funcs="F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9",pure_getters=true,keep_fargs=false,unsafe_comps=true,unsafe=true,passes=2' --output=elm.js && uglifyjs elm.js --mangle --output=elm.js +$ uglifyjs elm.js --compress 'pure_funcs="F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9",pure_getters=true,keep_fargs=false,unsafe_comps=true,unsafe=true,passes=2' --output elm.js && uglifyjs elm.js --mangle --output elm.js ``` This one lengthy command (make sure to scroll horizontally to get all of it if you're copy/pasting!) runs `uglifyjs` twice - first with `--compress` and then again with `--mangle`.