chore: improve bundling + refactor router (#10)
This commit changes how bundling works, by bundling all routes at once. Static JS assets are now cached immutably. Additionally this PR completly refactors how the router works to make it more modular. This allows users to opt out of the default oak server, and instead create their own.
This commit is contained in:
+2
-3
@@ -1,5 +1,5 @@
|
||||
# fresh project
|
||||
|
||||
|
||||
### Usage
|
||||
|
||||
Install deployctl:
|
||||
@@ -11,7 +11,7 @@ deno install --allow-read --allow-write --allow-env --allow-net --allow-run --no
|
||||
Start the project:
|
||||
|
||||
```
|
||||
deployctl run --no-check --watch server.ts
|
||||
deployctl run --no-check --watch main.ts
|
||||
```
|
||||
|
||||
After adding, removing, or moving a page in the `pages` directory, run:
|
||||
@@ -19,4 +19,3 @@ After adding, removing, or moving a page in the `pages` directory, run:
|
||||
```
|
||||
fresh routes
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user