Overview

1. Install Gzipper

In the terminal (from your project folder) run the following CLI command

npm i gzipper -D

Installation will take a few minutes.


2. Modify BUILD script

In package.json modify "build:ssr": line with:


3. Build

In the terminal run the following CLI command

npm run build:ssr

Once build is complete, open folder. Files have been compressed, with .gz extension. The pages are ready to be deployed.





Next

Deploy


Reference