Event JSON
{
"id": "58423e539acf041a1b457238f21292f48d6558d458e5b1dd861cd5975b054b7b",
"pubkey": "5e336907a3dda5cd58f11d162d8a4c9388f9cfb2f8dc4b469c8151e379c63bc9",
"created_at": 1740315804,
"kind": 1,
"tags": [
[
"t",
"asknostr"
],
[
"t",
"devstr"
],
[
"r",
"wss://at.nostrworks.com/",
"read"
],
[
"r",
"wss://nos.lol/"
],
[
"r",
"wss://nostr.einundzwanzig.space/"
],
[
"r",
"wss://nostr.mom/"
],
[
"r",
"wss://nostr.wine/",
"read"
],
[
"r",
"wss://relay.damus.io/"
],
[
"r",
"wss://relay.ingwie.me/"
],
[
"r",
"wss://relay.mostr.pub/"
],
[
"r",
"wss://relay.snort.social/",
"read"
]
],
"content": "#asknostr #devstr I know Rollup can \"bundle\" HTML pages that link scripts. But how do I:\n- Make it create a dist/ folder,\n- Copy the HTML over,\n- Rebuild the script tags to use type=text/javascript instead of =module (I have devices that ARE this old xD),\n- Transpile the linked JS down into an ES5 IIFE so it stays selfcontained,\n- Write that result to the dist/ folder?\nI just want this to be my shell, use go:embed to put the whole dist/ folder into my app and do everything else using templ? I really just need the bundling and transpiling aspect to \"make a shell\". o.o\nGot ideas? ^^\n\n(The bundle will contain htmx, alpinejs and perhaps an extension or two as well as my CSS of choice.)",
"sig": "8d5201e1423141ea02efce1ab00636678fb711fdc2d6c9b4529748655aca5c739c6760ab2bcc5407f335e809a9f0d65349151e1f1ad5ce0ee7a9722be8f7e875"
}