Skip to content

How to use Vite inside an addon during development #8851

Answered by rogerthat-be
rogerthat-be asked this question in Q&A
Discussion options

You must be logged in to vote

After some trial & error, I've successfully managed to get it working. The tag below (with both the "hot" and "directory" attributes) is essential when working within an addon directory.

{{ vite src="resources/js/addon.js|resources/css/addon.css" hot="addons/rogerthat-be/myaddon/resources/dist/hot" directory="vendor/myaddon/build" }}

Thanks Jason

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@rogerthat-be
Comment options

@jasonvarga
Comment options

@rogerthat-be
Comment options

Answer selected by rogerthat-be
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants