Dave Jones on Nostr: #laravel Interesting. Having to build all the CSS/JS into a bundle for serving with ...
#laravel Interesting. Having to build all the CSS/JS into a bundle for serving with Vite means that if I try to dynamically add a class with something like:
$(element).addClass('size-8')
...if I haven't used that class before in the static HTML of the blades it just will not work. I just had to make a dummy, non-visible <div class="size-8"> to get the dynamic assignment to work.
🤦♂️
$(element).addClass('size-8')
...if I haven't used that class before in the static HTML of the blades it just will not work. I just had to make a dummy, non-visible <div class="size-8"> to get the dynamic assignment to work.
🤦♂️