https://github.com/preactjs/next-plugin-preact
Next.js plugin for preact X
https://github.com/preactjs/next-plugin-preact
Last synced: 9 months ago
JSON representation
Next.js plugin for preact X
- Host: GitHub
- URL: https://github.com/preactjs/next-plugin-preact
- Owner: preactjs
- Created: 2019-07-11T15:32:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:01:28.000Z (over 3 years ago)
- Last Synced: 2025-09-21T06:31:01.965Z (9 months ago)
- Language: JavaScript
- Size: 625 KB
- Stars: 393
- Watchers: 8
- Forks: 9
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Next.js plugin for preact X
## Installation
```sh
npm install --save next next-plugin-preact preact react@npm:@preact/compat react-dom@npm:@preact/compat react-ssr-prepass@npm:preact-ssr-prepass preact-render-to-string
```
or
```sh
yarn add next next-plugin-preact preact react@npm:@preact/compat react-dom@npm:@preact/compat react-ssr-prepass@npm:preact-ssr-prepass preact-render-to-string
```
## Usage
Create a next.config.js in your project and apply the plugin.
```js
// next.config.js
const withPreact = require('next-plugin-preact');
module.exports = withPreact({
/* regular next.js config options here */
});
```