implement --live and --hot - fixes #385

This commit is contained in:
Rich Harris
2018-08-29 21:51:08 -04:00
parent d63b9437b5
commit 3b098caa6e
3 changed files with 34 additions and 19 deletions

View File

@@ -151,7 +151,7 @@ export default function middleware(opts: {
serve({
prefix: '/client/',
cache_control: 'max-age=31536000'
cache_control: dev() ? 'no-cache' : 'max-age=31536000'
}),
get_server_route_handler(manifest.server_routes),