Skip to content

wit03/Next-Preact-TypeScript

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 true
    optimizeImagesInDev: true
  }]],
  withPrefresh(config));

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published