-
-
Notifications
You must be signed in to change notification settings - Fork 613
Closed
@vadimkantorov
Description
Basically I'm looking to have an HTML template
<html> <body> <script type="module"> import CMS, { init } from '@sveltia/cms'; init(); </script> </body> </html>
defined as entry point. And I'd like to get a single HTML file as output (and have all dependencies inlined).
With this plugin I almost achieved this with:
- having to define a JS entry point, and place the script part in there
- defining a tricky custom rollup.config.js which defines the HTML template and allows to inline the script
- still rollup copies to the output dir the throw-away entry point script
I've also tried using https://open-wc.org/docs/building/rollup/
It allows to define an HTML entry point as I wanted. But I could not figure out how to inline the script.
It would be great to have best of both worlds in the official plugin...
Metadata
Metadata
Assignees
Labels
No labels