I would like to include in a vuejs component this jquery plugin : http://jvenn.toulouse.inra.fr/app/js/jvenn.min.js.
to do so, I added these lines
mounted () {
const jvenn = document.createElement('script')
jvenn.setAttribute(
'src',
'http://jvenn.toulouse.inra.fr/app/js/jvenn.min.js'
)
jvenn.async = true
document.head.appendChild(jvenn)
}
it works fine, but I'd like to have a local copy of this script in case this file will no longer be online. I tryed to add it in my assets directory, and to change http://jvenn.toulouse.inra.fr/app/js/jvenn.min.js by /static/js/jvenn.min.js without success.
Any idea ?
if
then it will be just
js/jvenn.min.js