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

bundle with browserify? #6

Open
ggorlen opened this issue Jun 9, 2022 · 2 comments
Open

bundle with browserify? #6

ggorlen opened this issue Jun 9, 2022 · 2 comments

Comments

@ggorlen
Copy link
Owner

ggorlen commented Jun 9, 2022

Making it a dev dependency doesn't change it from being zero-dependency on npm. The code should be transpiled and minified.

@ggorlen ggorlen changed the title bunde with browserify? bundle with browserify? Jun 9, 2022
@ggorlen
Copy link
Owner Author

ggorlen commented Aug 25, 2023

An alternative approach is sticking with no-build, but improving type annotation (checked with TS), linting, mininifcation (uglify-js), and writing code that's a bit more compatible with older browsers, like htmx

References:

@ggorlen
Copy link
Owner Author

ggorlen commented Jan 19, 2024

Actually, jsdelivr CDN can minify, so I'll just use that for now (#9). I'll leave this open for posterity though, might be good to lint and type check, and optionally minify on our end.

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

1 participant