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": "75c9dd630709d4492f4bc9f0f43ae44cba744933fae8c2cb33e1f81a2cdfc619",
"pubkey": "1e2637ad71db45378ad68094115f1128cd32bddb5d080ffd44f3518f4583cbfb",
"created_at": 1722459565,
"kind": 1,
"tags": [
[
"t",
"laravel"
],
[
"proxy",
"https://podcastindex.social/@dave/112883110092006230",
"web"
],
[
"proxy",
"https://podcastindex.social/users/dave/statuses/112883110092006230",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://podcastindex.social/users/dave/statuses/112883110092006230",
"pink.momostr"
],
[
"-"
]
],
"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": "5f81ac6b8ed4accafb2bcfcfd1e89d4824ceeff4b513f18d9b3711da5dfa2b6923d9e54fa332befbc414165c5bf4600ed2e86b095ac66b182db8eadbefd6ba12"
}