[Vuejs]-Is there any way to add an attribute to a minified JS script tags in Nuxt?

-2👍

Maybe this?

  var scripts = document.querySelectorAll('scripts');
  var l = 0;
  while (l<scripts.length) {
    if (scripts[l].src = '/_nuxt/cc2978d89512be6a8374.js') {
      scripts[l].setAttribute('NAME', 'VALUE');
    }
    l++;
  }

Leave a comment