Akryum / Akryum/vue-cli-plugin-ssr

Scripts loaded twice

Abierto
#221 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
441
Forks
69
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Javascript assets seems to be imported twice, once with `defer` attribute, once without.

Here is an extract of the SSR response with a newly created project :

```html

window.__INITIAL_STATE__ = {};
(function () {
var s;
(s = document.currentScript || document.scripts[document.scripts.length - 1]).parentNode.removeChild(s);
}());

```

Those with `defer` attribute seems to be added with the `renderScripts()` function in `vue-server-renderer` but I can't find where the other script are added.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.