Closed kr1ke closed 3 months ago
how i can add Tailwind in playground?
the only way I found is to insert this code into the vue component:
const tailwindScript = document.createElement('script') tailwindScript.setAttribute('src', 'https://cdn.tailwindcss.com') document.head.appendChild(tailwindScript)
but is there a way to run this code by default before starting the sandbox?
You can pass a prop previewOptions to the Repl component.
previewOptions
<Repl :preview-options="{ headHTML: '<script ... />' }" />
how i can add Tailwind in playground?
the only way I found is to insert this code into the vue component:
but is there a way to run this code by default before starting the sandbox?