Amadeus Maximilian on Nostr: Okay this is a bit of a long shot, but maybe one of you has an idea: In one of my ...
Okay this is a bit of a long shot, but maybe one of you has an idea:
In one of my multi-lingual #Astro websites, I’m generating a link map using a glob import of all pages and their content (basically a map of all file paths before build pointing to the URLs of the final pages in their languages), so I can just use the original path when writing my links.
I just want the map included in my build, not the entire glob import—is there a way I could achieve that in #Vite? 🤔
#webdev #node
1/2
Published at
2024-08-07 21:30:30Event JSON
{
"id": "d5fb04f9713fddca99e4862588fda625ee9ed2080b370966002e35d486c19e2e",
"pubkey": "6f79abf2242534084694d8acdf4e9fec16dbfa33913c05e9e5396b4a157a5dd7",
"created_at": 1723066230,
"kind": 1,
"tags": [
[
"t",
"astro"
],
[
"t",
"node"
],
[
"t",
"vite"
],
[
"proxy",
"https://mastodon.design/@amxmln/112922868487222528",
"web"
],
[
"t",
"webdev"
],
[
"proxy",
"https://mastodon.design/users/amxmln/statuses/112922868487222528",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.design/users/amxmln/statuses/112922868487222528",
"pink.momostr"
],
[
"-"
]
],
"content": "Okay this is a bit of a long shot, but maybe one of you has an idea:\n\nIn one of my multi-lingual #Astro websites, I’m generating a link map using a glob import of all pages and their content (basically a map of all file paths before build pointing to the URLs of the final pages in their languages), so I can just use the original path when writing my links.\n\nI just want the map included in my build, not the entire glob import—is there a way I could achieve that in #Vite? 🤔\n\n#webdev #node\n\n1/2",
"sig": "146e22ffd60fc1ea3a0fd25e06aba54cb0c0c0a44cae5b5a395d663b9383530f1145727bb1d88d1db7ab59c125d0dd6ae3c050de3e67a495cf79ad08c88d1cb1"
}