Create Preact apps with no build configuration.
This is fork of create-react-app that does the same, but uses Preact instead of React.
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
.
For the detailed information, please see the original repo. It contains all necessary information, this project doesn't have any differences.
This reposiory has automatic synchronization with upstream via Backstroke. Newer versions will be published whenever there will be new release in the original repo.