next-treat

1.3.0 • Public • Published

🍬 next-treat

Setup

To use treat in a Next.js project, install next-treat and add it to your next.config.js file like this:

const withTreat = require('next-treat')(/* Extra TreatPlugin options */);
 
module.exports = withTreat(/* Additional Next.js configuration */);

Debugging experience can be improved by setting up the Babel plugin with the .babelrc below:

{
  "presets": ["next/babel"],
  "plugins": ["babel-plugin-treat"]
}

Docs

See the documentation at seek-oss.github.io/treat for more information about using treat.

License

MIT.

Package Sidebar

Install

npm i next-treat

Weekly Downloads

0

Version

1.3.0

License

MIT

Unpacked Size

11.4 kB

Total Files

7

Last publish

Collaborators

  • seek-oss-ci