Articles list

Vite throwing ESM error during build

Posted on
I had an issue where I tried to upgrade a Vue project which was built on vue-cli to use Vite instead. Things were fine until I tried to include Tailwind plugin for Vite.

Writing my first browser extension with WXT

Posted on
In the last few months, I have worked on expanding my knowledge in web development by learning new technologies. I explored more of the Vue.js world and played around with many new libraries and patterns. Meanwhile working on work stuff I missed a good (or more suitable for me) extension that can fill forms with test data so I decided to put two things together - wanting to learn something new and improve my development workflow.

How to implement File Validation events?

Posted on
Drupal 11 will change many functionality related to file validation. One of the changes is the hook_file_validate() which is now deprecated and will be removed from Drupal 11.

Should you use Gin admin theme in Drupal?

Posted on
Are you considering a different admin theme for Drupal, because you dislike Claro? Maybe you are looking for something more modern? There is a contributed theme, which has good support and is currently one of the popular themes - Gin

Composer dependencies in VCS

Posted on
The best practice for composer dependencies is to keep them ignored in VCS. On some rare occasions, you may need to keep them there. So, how to do it correctly?

Show field on entity form programmatically

Posted on
How do you update entity display mode to show a newly created field by default? It is easy with configuration import, but what if you need to use hook_update_N?

What are guard clauses?

Posted on
Programming can be considered as a form of art - like each artist does its own thing it is the same with coding style - each for their own. Sometimes you learn from others, and sometimes you discover it yourself or you combine different ways and see what works well and what does not.

What is once() in Drupal and do you still need it?

Posted on
JavaScript plays a crucial role in modern web development, enhancing the interactivity and user experience of websites and web applications. In the context of Drupal, a powerful and flexible content management system, JavaScript is utilized to create dynamic and responsive interfaces, making websites more engaging and user-friendly.