hi everyone , thanks for pretty project . the nuxt.js project make my coding happy 👍 👍 👍
now i have a problem , in my page ,i add a extra swiper.min.js that the file have minfiy, and the file not a common.js module , i want to include it in my page ,but when i use it as a plugin and config in nuxt.config.js like the below: vendor: ['~/plugins/swiper/swiper.min']
it show me much eslint error,
when i use it as external resources like the doc: How to use external resources? in my page vue like below:
export default {
head: {
script: [
{ src: ' ~static/swiper/swiper.min.js' }
],
link: [
{ rel: 'stylesheet', href: '~static/swiper/swiper.min.css' }
]
},
.......
and it show me 404 error like this:
or
i don't konw how to solve my problem then , thanks for someone to solve this problem
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1109">#c1109</a>)</em></sub></div>