lucacasonato / dext.ts

The Preact Framework for Deno
https://deno.land/x/dext
MIT License
241 stars 8 forks source link

feat: first pass at custom router #19

Closed lucacasonato closed 4 years ago

lucacasonato commented 4 years ago

Main branch:

Page                           Size     First Load JS
┌ ● /                          189 B    5.74 kB      
├ ○ /dynamic/:name             175 B    5.73 kB      
└ ● /user/:name                189 B    5.74 kB      

+ First Load JS shared by all  5.55 kB               
  ├ /main-e29ff862.js          2.06 kB               
  └ /preact-5e05c32a.js        3.5 kB                

○  (Static)  automatically rendered as static HTML
●  (SSG)     automatically generated as static HTML + JSON (uses getStaticData)

File sizes are measured after brotli compression.

This PR:

Page                           Size     First Load JS
┌ ● /                          203 B    5.75 kB      
├ ○ /dynamic/:name             180 B    5.72 kB      
└ ● /user/:name                189 B    5.73 kB      

+ First Load JS shared by all  5.54 kB               
  ├ /main-dde6bb54.js          2.13 kB               
  └ /preact-22d4afe2.js        3.41 kB               

○  (Static)  automatically rendered as static HTML
●  (SSG)     automatically generated as static HTML + JSON (uses getStaticData)

File sizes are measured after brotli compression.