next-treat

Next.js plugin for treat

Usage no npm install needed!

<script type="module">
  import nextTreat from 'https://cdn.skypack.dev/next-treat';
</script>

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.