sharo-babel
This is the next.config.js
configuration plugin for sharo Next.js
boilerplate.
It adds support for MDX Markdown files and Webpack bundle analyzer.
Installation
npm i @tkesgar/sharo-next
Usage
Add into next.config.js
:
const sharoNext = require('@tkesgar/sharo-next')
const withSharo = sharoNext()
module.exports = withSharo({
// https://nextjs.org/docs/api-reference/next.config.js/introduction
})
What is included
-
@next/mdx
- Configured to use
*.mdx
extension, can be used in components or inpages/
- Configured to use
-
@next/bundle-analyzer
- Run wih
ANALYZE=true next build
- Run wih
License
Licensed under MIT License.