Can I use this library without npm or module? Just plain html
coisox opened this issue · comments
Aizal Manan commented
I include in index.html like this:
<script src="https://raw.githubusercontent.com/1904labs/dom-to-image-more/main/dist/dom-to-image-more.min.js"></script>
Then when I do this in script, I got error "domtoimage is not defined"
console.log(domtoimage)
I can't use "import" because "Cannot use import statement outside a module"
Marc Brooks commented
Yep, just include the minified source from a package cache like https://cdnjs.com/libraries/dom-to-image-more
Aizal Manan commented
Thank you it works. So any other library that ask me to import, I assume I cannot use them directly but need to find from CDNJS right?