I have multiples script in my folder /assets/js. I added them to nuxt.config.js like that:
script: [
{ src: 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js' },
{ src: '~assets/js/bootstrap.min.js' },
{ src: '~assets/js/retina-1.1.0.js' },
{ src: '~assets/js/jquery.hoverdir.js' },
{ src: '~assets/js/jquery.hoverex.min.js' },
{ src: '~assets/js/jquery.prettyPhoto.js' },
{ src: '~assets/js/jquery.isotope.min.js' },
{ src: '~assets/js/custom.js' }
],
There is no problem for the first one but for the local files none are loading. I tried : '@/assets', '/assets', 'js/', '~/assets', etc but nothing is working.
I always get this error:
GET http://localhost:3000/~assets/js/custom.js net::ERR_ABORTED
So how can I load my files please ? Thank you