Another Next.js Preact boilerplate but TypeScript is included.
There are 2 options available:
- Click "Use this template" on GitHub
- Clone this repository:
git clone https://github.com/wit03/Next-Preact-TypeScript.git
cd Next-Preact-TypeScript
yarn
# start a development server:
yarn dev
# create a production build:
yarn build
# start a production server:
yarn start
//...
module.exports = withPlugins([
[optimizedImages, {
handleImages: ['jpeg', 'png', 'webp'],
optimizeImages: false, //Change from false to true
optimizeImagesInDev: true
}]],
withPrefresh(config));