Skip to content

Repository files navigation

Next.js + Preact + TypeScript

Another Next.js Preact boilerplate but TypeScript is included.

Installation

There are 2 options available:

  1. Click "Use this template" on GitHub
  2. Clone this repository:
git clone https://github.com/wit03/Next-Preact-TypeScript.git
cd Next-Preact-TypeScript
yarn

Running

# start a development server:
yarn dev
# create a production build:
yarn build
# start a production server:
yarn start

This template also included

  • TSLint and Prettier
  • Next.js Image Optimizations, Images can be easily optimized by changing this:
//...module.exports=withPlugins([[optimizedImages,{handleImages: ['jpeg','png','webp'],optimizeImages: false,//Change from false to trueoptimizeImagesInDev: true}]],withPrefresh(config));

About

Preact + Next.js server-side rendering boilerplate using TypeScript

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages