Home

Issue: 1250

how to add a local minify js

[issue link]

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,
1
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:
2
or
image

i don’t konw how to solve my problem then , thanks for someone to solve this problem

This question is available on Nuxt.js community (#c1109)