1.0.3 • Published 2 years ago
next-bundle-junoblocks v1.0.3
next-bundle-junoblocks
Map junoblocks npm package to use your local junoblocks clone and enable fast refresh on nextjs.
Install
yarn add next-bundle-junoblocks
Usage
- Clone junoblocks repo in the same parent folder of your nextjs app. Here's an example of the folder structure.
└── nextjs-app
└──── node_modules
└──── src
└──── ...
└── junoblocks
- Update
next.config.js
with the following:
// next.config.js
const withBundleJunoblocks = require('next-bundle-junoblocks')
module.exports = withBundleJunoblocks({});
- Run
yarn install && yarn dev
in junoblocks folder. - Run
yarn dev
in your nextjs app.