mirror of
https://github.com/nvms/esr.git
synced 2025-12-16 06:40:52 +00:00
ok
This commit is contained in:
parent
1cb6dad511
commit
7dc00f2803
@ -18,11 +18,13 @@ For the minimalist. For the developer who misses the old web. For the developer
|
|||||||
## Quickstart
|
## Quickstart
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# In an empty directory
|
||||||
|
$ esr --init
|
||||||
$ esr --serve src/index.ts
|
$ esr --serve src/index.ts
|
||||||
esr :: Serving on http://localhost:1234
|
esr :: Serving on http://localhost:1234
|
||||||
```
|
```
|
||||||
|
|
||||||
`src/index.ts` is bundled with esbuild and included in the HTML page served at the URL above.
|
`src/index.ts` is bundled and included in the HTML page served at the address above.
|
||||||
|
|
||||||
## Example configuration
|
## Example configuration
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@ var indexHtml = `<!DOCTYPE html>
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta name="color-scheme" content="light dark">
|
||||||
<title>Application</title>
|
<title>Application</title>
|
||||||
{{ css }}
|
{{ css }}
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user