September 2017
Intermediate to advanced
450 pages
11h 24m
English
To use compression on the assets served by our Express server, we will need to install a few modules:
npm install compression-webpack-plugin --save-devnpm install express-static-gzip --save
We will also do some more TypeScript conversion, so we'll want to install a few more type definitions for modules we are using in our application. In this case, we should install the type definitions for our Cheerio html parser library:
npm install @types/cheerio --save-dev
Not installing these type libraries can cause TypeScript compilation errors, as TypeScript ...
Read now
Unlock full access