Static GitHub Issues

[2700] Insert script tags *before* the usual bundles

prev: How to add a polyfil to nuxtjs ?
next: maxChunkSize used in build will break whole app

I'm trying to insert polyfills from https://polyfills.io. The issue is that the following method will not work:

    script: [
      {src: 'https://cdn.polyfill.io/v2/polyfill.min.js?features=es6,es7,es2017', body: true, defer: true}
    ]

This will result in the polyfill be loaded after the bundles, which just doesn't make sense. We need an option (or default) to make it inserted before bundles.

(A workaround would be just putting it inside head, but it creates blocking traffic which reduces PageSpeed/lighthouse score.)

<!--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/c2345">#c2345</a>)</em></sub></div>