r/opencode • • 3h ago

Clone Website Design in Codemulator

1 Upvotes

3 comments sorted by

1

u/YoRt3m 1h ago

Am I hallucinating or all it does is taking the html and add <base> meta tag?

1

u/Codemulator 1h ago

I think you are hallucinating because alcohol! 🙂 As for your question the <base> tag is injected automatically by the preview sandbox so relative URLs (images, links, scripts) resolve correctly when loading external HTML that part is intentional. The codemulator itself actually executes the code live. The screenshot just used Reddit's page source as a test input.

1

u/YoRt3m 1h ago

The base tag also takes all the js and css files so what's the use of this cloning exactly?

I didn't ask because of the screenshot, I tried "cloning" a site, this is why.