Fingerprint does not update when content changed after webpack update
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript
- Área
- build-system
Línea de trabajo
Comienza comparando el orden de la información en el package.json de ember-cli-terser con el orden referenciado de ember-cli-sri y broccoli-asset-rev. Reproduce una compilación en la que webpack cambie el contenido de vendor-${fingerprint}.js y, después, verifica que la huella digital y el valor de integridad se generen a partir del contenido final y que la reproducción existente ya no falle.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
We had an incident after updating webpack. Turns out that the webpack update changed the content of vendor-${fingerprint}.js but did not update the fingerprint. We also use ember-cli-sri that adds integrity SHA in index.html which correctly updated. Users opening the site in a new tab got the new index.html with the right integrity SHA and the browsers served the old vendor-1234.js from cache. That resulted in the following error:
Failed to find a valid digest in the 'integrity' attribute for resource
'https://example.com/assets/vendor-1234.js' with computed SHA-512 integrity '03...Ugg=='.
The reosuce has been blocked.
Somehow the order seems to be wrong and the fingerprinting should run after webpack finished its work.
I first thought that renaming this addon from ember-cli-uglify to ember-cli-terser in https://github.com/ember-cli/ember-cli-terser/pull/230 caused it because ember-cli-sri still refers to ember-cli-uglify here. Then I saw that this addon has its own order infos here introduced in https://github.com/ember-cli/ember-cli-terser/pull/266.
If broccoli-asset-rev does the fingerprinting this addon should run before broccoli-asset-rev also mentioned in https://github.com/ember-cli/ember-cli-terser/pull/298
Is the only solution to fix this, to pin ember-cli-terser to 4.0.1?
Edit: Pinning ember-cli-terser to 4.0.1 will not work because it's missing "before": "ember-cli-sri", 😞
Edit: I found the same issue for ember-cli-autoprefixer with the expected fix.
@NullVoxPopuli @mike-engel
- Lenguaje dominante
- JavaScript
- Estrellas
- 22
- Forks
- 23
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ember-cli/ember-cli-terser
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
ember-cli/ember-cli-terser#287 · 7 comentarios ·
-
Sourcemaps + fingerprinting regression with ember-cli-terser 4.0.2?Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 32/100
ember-cli/ember-cli-terser#275 · 10 comentarios · 4 reacciones ·
-
production builds failing in ember 3.0.0.beta.5: broccoliBuilderErrorStack: TypeError: name.definition is not a functionQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
ember-cli/ember-cli-terser#35 · 2 comentarios ·
Todos los issues de ember-cli/ember-cli-terser
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
521xueweihan/HelloGitHub#4025 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
iib0011/omni-tools#479 ·
Los mantenedores suelen responder en 1 día
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
pixelfed/pixelfed-rn#508 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
yetone/magpie#2844 · 1 comentario ·
Los mantenedores suelen responder en 1 día