Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correction of code example to minify js output #240

Merged
merged 2 commits into from
Feb 10, 2021
Merged

Conversation

FilipJakab
Copy link
Contributor

Current code throws this error:
...ERROR: `'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'` is not a supported option at DefaultsError.get...

Code was fixed based on this link:
uglify-js docs

Pasted code was taken from string - escaping no longer needed..
@FilipJakab
Copy link
Contributor Author

The format for value of pure_funcs option now needs array of strings.
image

@evancz
Copy link
Owner

evancz commented Feb 10, 2021

I used the syntax to match https://github.com/elm/compiler/blob/master/hints/optimize.md exactly. I'm not 100% sure whether the double quotes are needed or not in that argument though, so I erred on the side of saying the same thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants