Open mentik opened 2 years ago
I got this working as a single static html file after some trial and error, by setting importmaps for dependencies that required esm
You can see it working here: https://static-playground-imports.tiiny.site/
@jacalata That site doesn't work. Can you explain further?
I am also interested in this as well. How do you host this project?
I got something working.
examples/rollup/
folder to your dev folder.package.json
and change the dependency from file:
to 0.18.1
(see patch below)npm install
then npm run build
dist/
to your static web server directory.--- package.json.orig 2023-08-26 00:15:28.539482215 -0400
+++ package.json 2023-08-26 00:04:33.970240146 -0400
@@ -14,6 +14,6 @@
"rollup-plugin-copy": "^3.4.0"
},
"dependencies": {
- "playground-elements": "file:../.."
+ "playground-elements": "0.18.1"
}
}
I would to host playground in my site as static web How to do this?