[Vuejs]-Vue JS Add Custom HTML attribute to script tag

4👍

And vue meta does not work?

export default {
  head() {
    return {
      script: [
        {
          src:
            'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js',
          supercoolattribute: 'supercool',
        },
      ],
    }
  },
}

enter image description here

Works well for me

0👍

There’s a library called vue-head that allows you to manipulate the head-tag in Vue JS.

👤Timm

Leave a comment