Skip to content

just-boris/create-preact-app

 
 

Repository files navigation

Create Preact App Build Status

Create Preact apps with no build configuration.

This is fork of create-react-app that does the same, but uses Preact instead of React.

Quick Overview

You can use it with the same create-react-app command as well as upstream repo. You just need to specify custom versions of react-scripts package:

npx install -g create-react-app

npx create-react-app my-app --scripts-version @just-boris/preact-scripts
cd my-app

Because of the issue in Create-react-app you will need to replace React with Preact manually:

npm uninstall react react-dom
npm install preact preact-compat

Now you can start dev-server

npm start

Then open http://localhost:3000/ to see your app.
When you’re ready to deploy to production, create a minified bundle with npm run build.

Documentation

For the detailed information, please see the original repo. It contains all necessary information, this project doesn't have any differences.

Updates

This reposiory has automatic synchronization with upstream via Backstroke. Newer versions will be published whenever there will be new release in the original repo.

Many thanks to maintainers of the original project for their awesome work!

Packages

No packages published

Languages

  • JavaScript 98.8%
  • Other 1.2%