This package allows you to compress assets, like css and js files.

npm install --save compression

app.js

...
const helmet = require("compression");
const app = express();
app.use(compression());
...