htmx icon indicating copy to clipboard operation
htmx copied to clipboard

Add minified versions of extensions

Open mlissner opened this issue 3 years ago • 3 comments

At least a few of the extensions would benefit from this, and as HTMX takes over the world, there's probably an environmental/ethical argument to be made.

I poked around and didn't see what minifies the htmx file itself, but it'd be nice to apply that to extensions too, if that's not too difficult.

mlissner avatar Oct 17 '22 18:10 mlissner

I poked around and didn't see what minifies the htmx file itself

Wouldn't that be this custom npm command?

https://github.com/bigskysoftware/htmx/blob/f919c0705182c904a440e3ff4a9687f4d5166c55/package.json#L33

lukasjuhrich avatar Feb 24 '24 13:02 lukasjuhrich

I poked around and didn't see what minifies the htmx file itself

Wouldn't that be this custom npm command?

https://github.com/bigskysoftware/htmx/blob/f919c0705182c904a440e3ff4a9687f4d5166c55/package.json#L33

I don't really see why this couldn't be done automatically for the extensions.

Using uglifyjs on the extension and then serving it locally is a solution, but I think just having a minified version in dist/ext would make more sense.

If the feature is approved, I would be happy to write a script for doing it and then create a PR.

airblast-dev avatar Mar 18 '24 11:03 airblast-dev