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
+8-8
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ The above command pulls the template from [preactjs-templates/default], prompts
65
65
66
66
The purpose of official preact project templates are to provide opinionated development tooling setups so that users can get started with actual app code as fast as possible. However, these templates are un-opinionated in terms of how you structure your app code and what libraries you use in addition to preact.js.
67
67
68
-
All official project templates are repos in the [preactjs-templates organization]. When a new template is added to the organization, you will be able to run `preact create <template-name> <project-name>` to use that template.
68
+
All official project templates are repos in the [preactjs-templates organization]. When a new template is added to the organization, you will be able to run `npx preact-cli create <template-name> <project-name>` to use that template.
69
69
70
70
Current available templates include:
71
71
@@ -81,7 +81,7 @@ Current available templates include:
81
81
82
82
-[widget-typescript] - Widget template implemented in TypeScript
83
83
84
-
> 💁 Tip: Any Github repo with a `'template'` folder can be used as a custom template: <br /> `preact create <username>/<repository> <project-name>`
84
+
> 💁 Tip: Any Github repo with a `'template'` folder can be used as a custom template: <br /> `npx preact-cli create <username>/<repository> <project-name>`
85
85
86
86
### CLI Options
87
87
@@ -90,7 +90,7 @@ Current available templates include:
-c, --config Path to custom CLI config (default preact.config.js)
156
156
-H, --host Set server hostname (default 0.0.0.0)
@@ -192,7 +192,7 @@ To make customizing your configuration easier, preact-cli supports plugins. Visi
192
192
193
193
#### Browserslist
194
194
195
-
You may customize your list of supported browser versions by declaring a [`"browserslist"`] key within your `package.json`. Changing these values will modify your JavaScript (via [`babel-preset-env`]) and your CSS (via [`autoprefixer`](https://github.com/postcss/autoprefixer)) output.
195
+
You may customize your list of supported browser versions by declaring a [`"browserslist"`] key within your `package.json`. Changing these values will modify your JavaScript (via [`@babel/preset-env`]) and your CSS (via [`autoprefixer`](https://github.com/postcss/autoprefixer)) output.
196
196
197
197
By default, `preact-cli` emulates the following config:
198
198
@@ -385,7 +385,7 @@ Automatic code splitting is applied to all JavaScript and TypeScript files in th
0 commit comments