-
-
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
Npm module for extensions #2464
Comments
Can you post the part of your code/config you are referring to?
The problem is not clearly described. Always include code examples and detailed steps to reproduce when filing |
@believelody thank you - this is a very relevant question. All extensions can be installed using npm. The package naming is Extensions can currently be imported as ESM modules with this workaround. I have opened another PR to make it possible to integrate them with a clean ESM approach like this: import `htmx.org`;
import `htmx-ext-extension-name`; // Replace `extension-name` with the extension name |
Hi there,
I installed htmx via npm module. I want to also use some extensions. But mix htmx from npm and extensions in script tag doesn't work. Are there npm module equivalent for extensions ? Or any workaround to use extensions with htmx in .js files ?
Sincerely
The text was updated successfully, but these errors were encountered: