[Vuejs]-Script inclusion in index.html on Vue.js application gives 404

0👍

you have to import it in your component. webpack manage the dependencies.

If you have used vue init webpack you are also using vue-loader so for adding jquery to the Hallo component you can do like this

first as you have already done npm install --save jquery

After that open the file App.vue and in the section add the import:

<script>
import Hello from './components/Hello'
import jquery from 'jquery'

export default {
  name: 'app',
  components: {
    Hello
  }
}
</script>

Not sure is what are you looking for but this is how you can add a 3rd party lib

Leave a comment