mariohernandez / mariohernandezio

The personal blog of Mario Hernandez
1 stars 0 forks source link

blog/automating-your-drupal-front-end-with-vitejs/ #135

Open utterances-bot opened 1 month ago

utterances-bot commented 1 month ago

Automating your Drupal Front-end with ViteJS - Mario Hernandez

If you are searching for the next front-end build tool for your Drupal project, or any project, you should try ViteJS.

https://mariohernandez.io//blog/automating-your-drupal-front-end-with-vitejs/

denis-bertrand-be commented 1 month ago

Very interesting article, thank you for this huge work. I would like to see/know how to handle a more complex javascript setup, with some global behaviour and with components that use external JS libs... :-)

mariohernandez commented 1 month ago

Thanks for the feedback @denis-bertrand-be. As you can imagine, there are several ways to accomplish what you are asking about. One way I usually do this is by downloading third party libraries locally and then reference them from the target components. I typically create Drupal libraries for the third party libraries to be able to use them within Drupal.