diff --git a/README.md b/README.md index 2289965..2ada6fe 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ - **S**erver **S**ide **R**endering - **H**ot **M**odule **R**eplacement for both client and server side React[React](https://facebook.github.io/react/) components - Up to date JavaScript ([**E**CMA](https://en.wikipedia.org/wiki/Ecma_International)**S**cript 6 (2015)) support + - Single route static site generation - Express server with gzip [compression](https://github.com/expressjs/compression) - HTML and inline CSS and JS minification with [HTMLMinifier](https://github.com/kangax/html-minifier) - Styled Components [Styled Components](https://www.styled-components.com/) @@ -54,6 +55,13 @@ Start the server in development mode: yarn dev ``` +### Single route static site generation +Generate a static site: +```shell +yarn static +``` +Open the `index.html` within the `static` folder to access the web application. The folder name can be modified with the `RAZZLE_STATIC_PATH` environment variable. + ## Idea behind the example This project is based on the [basic razzle example](https://github.com/jaredpalmer/razzle/tree/master/examples/basic). This repository also satisfies the following 2 entry points requred by Razzle: - `src/index.js` for the server