-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add gulp as build system to generate UMD wrapper also for extensions #1482
Conversation
I think the project would really benefit from this PR - I was already on the way to do a PR myself after discovering that extensions are not minified. When gulp is not minimal enough, we could run uglify over all distributed files? |
Incorporating a build system into htmx has been discussed extensively, and then ultimately rejected. See here for some of that discussion:
It looks like there's a reasonable workaround too? #1469 (comment) The question of minifying/UMDing the extensions is a fair one. I would suggest opening an issue dedicated to it and then we can discuss the best way to handle that. I know there's some possible willingness to at least automating the UMD situation, but it's a slightly touchy subject, so a PR can't really happen until we have some consensus on that. |
@gnat what are you trying to tell us? |
He is telling us that the he does not understand the PR at all. |
@xhaggi maybe we should provide a fork which code is identical but with your PR content? |
@matsp That would certainly not be the right way to go, nor is it my intention. |
Sure it's not the right way. This library is getting more and more attraction and thus people will ask about this PR. Providing just a pull solution to import in their projects will lead to the right amount of pressure in the maintainer team to think about it. |
Imo it's still the correct decision. |
This adds a minimal build system based on gulp.js to add a UMD wrapper, minify and gzip the source files, including all extensions.
Related issue #1469