client side JS

If I am using "lodash" on the client side, do I need to have a path for the browser to get it from NPM repository the way I wold if I wasn't using deno?
8 Replies
Leokuma
Leokuma2y ago
Not sure if I understand the question. Can you give an example?
dan.the.discloser
right now I have to have something like
<script type="module" src="/client.js"></script>
<script type="module" src="/client.js"></script>
or this
<script src="https://cdnjs.cloudflare.com/ajax/libs/Sortable/1.14.0/Sortable.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Sortable/1.14.0/Sortable.min.js"></script>
in my index.html file. I don't remember needing such things a while back when I was last using deno.
ioB
ioB2y ago
What framework are you using?
dan.the.discloser
currently oak. I think I was using Ultra when I used to do this
ioB
ioB2y ago
oak isn’t really a front end framework you can just serve static html if you insist I would recommend using something like ultra or fresh if you want to do front end
dan.the.discloser
thank you. where can I find a good tutorial on fresh and/or ultra
dan.the.discloser
thank you