Dave 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.
🤦♂️
Published at
2024-07-31 20:59:25Event JSON
{
"id": "56396028d37e92a72a1655be314130961b457032e58bd4fcccf51f09c1a47b65",
"pubkey": "01b564093b88a80fa5269f27044e1dea1d832f56f9b40f2064a6ba39506f27e2",
"created_at": 1722459565,
"kind": 1,
"tags": [
[
"t",
"laravel"
],
[
"proxy",
"https://podcastindex.social/users/dave/statuses/112883110092006230",
"activitypub"
]
],
"content": "#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: \n\n$(element).addClass('size-8')\n\n...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 \u003cdiv class=\"size-8\"\u003e to get the dynamic assignment to work. \n\n🤦♂️",
"sig": "67db54a91f425f38552bf060583d1ff90049e1d8f03807984bbda599f98647d6f0f60aeb29ae0233836f6e0e1330235f82b1f560095e729b514777d05c4df1b7"
}