8000 how would you use elm-optimize-level-2 with elm-watch? · Issue #75 · lydell/elm-watch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

how would you use elm-optimize-level-2 with elm-watch? #75

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

Open
BrianHicks opened this issue Dec 22, 2023 · 2 comments
Open

how would you use elm-optimize-level-2 with elm-watch? #75

BrianHicks opened this issue Dec 22, 2023 · 2 comments

Comments

@BrianHicks
Copy link
Contributor

Is there a good way to use elm-optimize-level-2 with elm-watch? It looks like they both need to start from the Elm files. Just kind of idly curious, but I am looking at these to figure stuff out, so I'd like to know if you've experimented with it!

(And happy holidays!)

@lydell
Copy link
Owner
lydell commented Dec 23, 2023

Hi! I don’t use elm-optimize-level-2 myself, but as far as I remember it has an undocumented API which is just String -> String (it takes the compiled JS from elm make --optimize and returns even more optimized JS) which you can use in elm-watch postprocessing.

@BrianHicks
Copy link
Contributor Author

Oh neat, I’ll look into that. Thank you!

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

No branches or pull requests

2 participants
0