coryhouse / coryhouse/javascript-development-environment

distServer.js and compression order doesn't work for me unless swapped

Open
#29 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
293
Forks
185
PR merge metrics
No merged PRs in 30d

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'));

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, javascript
Domain
backend, performance
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.