# Tuts / Examples for Hotwire + Asset pipeline + Skypack?

**URL:** https://discuss.hotwired.dev/t/tuts-examples-for-hotwire-asset-pipeline-skypack/2330
**Category:** General
**Created:** [February 18, 2021, 2:47pm UTC](https://discuss.hotwired.dev/t/tuts-examples-for-hotwire-asset-pipeline-skypack/2330 "2021-02-18T14:47:46Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![danielvlopes](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/danielvlopes/32/1665_2.png) [@danielvlopes](https://discuss.hotwired.dev/u/danielvlopes)
#### Post date: [February 20, 2021, 6:51pm UTC](https://discuss.hotwired.dev/t/tuts-examples-for-hotwire-asset-pipeline-skypack/2330/6 "2021-02-20T18:51:50Z")

</div>

I explained what “download ESM from skypack” means here:

> [@Using SortableJS, skypack, Stimulus & fetch (without RailsUJS)](https://discuss.hotwired.dev/t/tutorial-using-sortablejs-skypack-stimulus-fetch-no-ajax-on-a-hotwire-app-no-railsujs/2341):
>
> We’ve been migrating [https://knowyourteam.com](https://knowyourteam.com) to Turbo (and out of jQuery as well), and I was just migrating one of our features that requires drag-n-drop and it took me a bit longer than I expected to get it working. So I’m sharing the code here in case others might have similar needs. This covers: Downloading SortableJs library from skypack.dev as ESM. Wrapping a third-party lib with a Stimulus controller. Using fetch instead of Ajax. Not using Rails UJS Our importmap.json (no changes) { …

In the link above I’m using SortableJS so you’d open their cdn URL and grab the other URL inside. For example:

1. Open [https://cdn.skypack.dev/sortablejs@1.13.0?min](https://cdn.skypack.dev/sortablejs@1.13.0?min)
2. Then grab the path and open the final URL: [https://cdn.skypack.dev/-/sortablejs@v1.13.0-mei9zfSyMp6mF9rZklbl/dist=es2020,mode=imports,min/optimized/sortablejs.js](https://cdn.skypack.dev/-/sortablejs@v1.13.0-mei9zfSyMp6mF9rZklbl/dist=es2020,mode=imports,min/optimized/sortablejs.js)
3. Place the file above in the app/assets/javascripts/libraries and the stimulus help from your importmap will pickup the import correctly.

I hope this helps.

---

_[View the full topic](https://discuss.hotwired.dev/t/tuts-examples-for-hotwire-asset-pipeline-skypack/2330)._
