einSelbst / vehicle

Home Page:vehicle-git-master.einselbst.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preact example

FOSSA Status

Prettier

This is a fully working example of Next.js 10.0 running on Preact instead of React.

This reduces the base JavaScript weight of pages to ~22kB.

đź”­ In the future, this can be even smaller with some additional Webpack optimizations.

How to use

Clone this repo and run npm install:

git clone https://github.com/developit/nextjs-preact-demo.git
cd nextjs-preact-demo
npm install

There are three commands available:

# start a development server:
npm run dev

# create a production build:
npm run build

# start a production server:
npm start

How does it work?

The example takes advantage of npm/yarn aliases, which essentially allow installing preact/compat at node_modules/react.

Here's how this example repo was set up:

CI / Automated Testing / code quality

Github Action

Lighthouse

Bundle Analyzer

Compressed Size

BundleWatch

BundleStats

LGTM

Renovate

Next.js Stats Action

Prettier - Standard

auto create pull requests

detect secrets

release notes preview

add labels to pull requests automatically

OWASP

under consideration

License

FOSSA Status

About

vehicle-git-master.einselbst.vercel.app


Languages

Language:JavaScript 100.0%