coryhouse / coryhouse/javascript-development-environment
distServer.js and compression order doesn't work for me unless swapped
- Langage dominant
- JavaScript
- Étoiles
- 293
- Forks
- 185
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
This worked for me, and I think the video shows the same. But Github version shows it swapped. I don't know if this matters or not because I haven't finished the video. And what I mean not working is bundle.js wasn't being compressed.
app.use(compression());
app.use(express.static('dist'));
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start by opening distServer.js and comparing the middleware order shown in the issue: compression() before or after express.static('dist'). Reproduce the report by checking whether bundle.js is compressed under each order, then confirm which behavior is intended.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- express, javascript
- Domaine
- backend, performance
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100