feat: add config option to disable runtime js (#36)

The config option can be toggled per page:

```js
export const config: PageConfig = { runtimeJS: false };
```
This commit is contained in:
Luca Casonato
2021-06-13 00:01:59 +02:00
committed by GitHub
parent ae4603c731
commit 65d164d073
9 changed files with 66 additions and 20 deletions
+6 -3
View File
@@ -15,13 +15,16 @@ Fresh does not have a build step - you write your code, deploy it to
the framework.
- No build step
- Zero config
- Zero config necessary
- JIT rendering on the edge
- Tiny (example is 3KB of JS)
- Client side hydration
- Tiny (example is 0-3KB of runtime JS)<sup>1</sup>
- Optional client side hydration
- TypeScript out of the box
- File-system routing à la Next.js
_<sup>1</sup> Client side hydration can be disabled per page. This results in
**no JS** being shipped to the client._
## Install
To install, run the following command. This will add `fresh` CLI to your PATH.