I use htmx which uses this URL for their JavaScript:
https://unpkg.com/[email protected]
This gets rejected, if I try to add it to a runnable stack snippet.
What should I do now?
It gets rejected:
I use htmx which uses this URL for their JavaScript:
https://unpkg.com/[email protected]
This gets rejected, if I try to add it to a runnable stack snippet.
What should I do now?
It gets rejected:
The dialogue you describe is just a shortcut telling the system to add a <script>
(or <link>
, in the case of css) tag to your snippet- nothing ever stops you from adding one manually that uses a shortened unpkg.com link.
Just make sure you know whether you're adding a css or js file, as pointed out by @SuperStormer.
Eg:
new Vue({
el: '#app',
data() {
return {
text: 'Hello world!',
}
}
})
<script src="https://unpkg.com/vue@2"></script>
<div id="app">
{{ text }}
</div>
https://unpkg.com/[email protected]/dist/htmx.min.js
- does that work for you?