Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create a Vite-powered Preact app in seconds

License

NotificationsYou must be signed in to change notification settings

preactjs/create-preact

 
 

Repository files navigation

Create a Vite-powered Preact app in seconds

Interactive Usage

Interactive usage will walk you through the process of creating a new Preact project, offering options for you to select from.

$ npm init preact [<project-name>]$ yarn create preact [<project-name>]$ pnpm create preact [<project-name>]

<project-name> is an optional argument, mainly for use in other initializers (such ascreate-vite).

Non-interactive Usage

Non-interactive usage will create a new Preact project based upon passed CLI flags. At least one must be specified, even if it matches the default.

  • --lang
    • Language to use for the project. Defaults tojs
    • Options:js,ts
  • --use-router
    • Whether to include the Preact Router. Defaults tofalse
  • --use-prerender
    • Whether to initialize your app for prerendering. Defaults tofalse
  • --use-eslint
    • Whether to include ESLint configuration. Defaults tofalse

License

MIT

About

Create a Vite-powered Preact app in seconds

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors7


[8]ページ先頭

©2009-2025 Movatter.jp