You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+26-5Lines changed: 26 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@
14
14
- Monitor your bundle/chunk sizes with built-in tracking
15
15
- Automatic app mounting, debug helpers & Hot Module Replacement
16
16
- In just **4.5kb** you get a productive environment:
17
-
- [preact]
18
-
- [preact-router]
19
-
- 1.5kb of conditionally-loaded polyfills for [fetch](https://github.com/developit/unfetch) & [Promise](https://npm.im/promise-polyfill)
17
+
-[preact]
18
+
-[preact-router]
19
+
- 1.5kb of conditionally-loaded polyfills for [fetch](https://github.com/developit/unfetch) & [Promise](https://npm.im/promise-polyfill)
20
20
21
21
22
22
### Commands
@@ -79,8 +79,8 @@ $ preact serve
79
79
80
80
--dir Directory root to serve static files from. [default: "build"]
81
81
--cwd The working directory in which to spawn a server. [default: .]
82
-
--server Which server to run, or "config" to produce a firebase config.
--dest Directory or filename where firebase.json should be written
85
85
(used for --server config) [default: -]
86
86
--port, -p Port to start a server on [default: "8080"]
@@ -99,6 +99,27 @@ npm run serve -- --server config
99
99
# Copy your static files to a server!
100
100
```
101
101
102
+
### Custom Configuration
103
+
104
+
> **TL;DR** Currently in progress. See [#56](https://github.com/developit/preact-cli/pull/56)
105
+
106
+
#### Browserslist
107
+
108
+
You may customize your list of supported browser versions by declaring a [`"browserslist"`](https://github.com/ai/browserslist) key within your `package.json`. Changing these values will modify your JavaScript (via [`babel-preset-env`](https://github.com/babel/babel-preset-env#targetsbrowsers)) and your CSS (via [`autoprefixer`](https://github.com/postcss/autoprefixer)) output.
109
+
110
+
By default, `preact-cli` emulates the following config:
0 commit comments