usage without require/module manager
sido420 opened this issue · comments
sido420 commented
I haven't modified my project to use any kind of module manager yet. So, is this possible to use nanomorph by using regular script tags only?
what would be required if this cant be done through npm?
I use *-umd files from morpdom.
Renée commented
You can use the https://wzrd.in browserify cdn to get a UMD module bundle that you can use in a script tag:
<script src="https://wzrd.in/standalone/nanomorph"></script>
<script src="https://wzrd.in/standalone/bel"></script>
<script>
nanomorph(document.body, bel`
<body>
<h1>it works!</h1>
</body>
`)
</script>
sido420 commented
Thanks.
Alban Minassian commented
try https://bundle.run/nanomorph@5.4.2 alse