next-plugin-preact

3.0.7 • Public • Published

Next.js plugin for preact X

Installation

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

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.

// next.config.js
const withPreact = require('next-plugin-preact');

module.exports = withPreact({
    /* regular next.js config options here */
});

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i next-plugin-preact

    Weekly Downloads

    6,561

    Version

    3.0.7

    License

    MIT

    Unpacked Size

    7.42 kB

    Total Files

    6

    Last publish

    Collaborators

    • sventschui
    • marvinhagemeister
    • jdecroock