1.0.3 • Published 3 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-junoblocksUsage
- 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.jswith the following:
// next.config.js
const withBundleJunoblocks = require('next-bundle-junoblocks')
module.exports = withBundleJunoblocks({});- Run
yarn install && yarn devin junoblocks folder. - Run
yarn devin your nextjs app.