Skip to content

Commit

Permalink
compression
Browse files Browse the repository at this point in the history
  • Loading branch information
furknyavuz committed Sep 26, 2021
1 parent aca4c38 commit 21c2a9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@types/simple-icons": "^5.0.0",
"angular-google-tag-manager": "^1.4.2",
"angular-in-memory-web-api": "^0.11.0",
"compression": "^1.7.4",
"countup.js": "^2.0.7",
"dotenv": "^10.0.0",
"express": "^4.17.1",
Expand Down
5 changes: 5 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ console.info( env.parsed );

const path = require( "path" );
const express = require( "express" );
const compression = require( "compression" );

// express init
const app = express();

// compression
app.use( compression() );

app.disable( "x-powered-by" );

// directory that we will serve
Expand Down

0 comments on commit 21c2a9d

Please sign in to comment.