next-treat
v1.3.0
Published
Next.js plugin for treat
Downloads
12
Maintainers
Readme
🍬 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.