Dynamic import (injecting) HTML files for vanilla JS projects. #6659
rifkyniyas
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
@rifkyniyas You can use for this https://github.com/posthtml/posthtml |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I recently started using Vite for vanilla JS projects since it's extremely powerful tool for optimization in production. I use vanilla JS for mostly simple landing page designs, etc.
The main issue that arises when working with HTML files is that a single file gets bloated with HTML tags and it would be extremely convenient to have the file split up into multiple files and include them in to the main file. I would like to know whether there is an option to include HTML files inside HTML files in vite?
Beta Was this translation helpful? Give feedback.
All reactions