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

Minifier for Hyperscript #566

Closed
fullnitrous opened this issue Sep 11, 2024 · 1 comment
Closed

Minifier for Hyperscript #566

fullnitrous opened this issue Sep 11, 2024 · 1 comment

Comments

@fullnitrous
Copy link

Is there any consideration to create a hyperscript minifier such that

<div_="
    on click
        toggle .test
"></div>

minifies to

<div_="on click toggle .test"></div>

also for

<script type="text/hyperscript"></script>

blocks and also for .hs files.

Would be good for the maturity of the language / for production use.

@1cg
Copy link
Contributor

1cg commented Dec 13, 2024

new lines has a meaning in at least one case else if on the same line will be interpreted as the if binding to the else, if there is a newline the if will be within the else

minification is also kinda against the spirit of hyperscript, which is readability in place over pretty much everything (including perf)

@1cg 1cg closed this as completed Dec 13, 2024
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