🍬 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 = /* Extra TreatPlugin options */; moduleexports = ;
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.