1.0.0 • Published 3 years ago
next-vanilla-extract v1.0.0
🧁 next-vanilla-extract
Next.js plugin for Vanilla Extract that supports fast refresh. Adapted from the Next.js Treat plugin.
Setup
- Install the dependencies
npm i next-vanilla-extract @vanilla-extract/babel-plugin
- Add the Next.js plugin to your
next.config.js
file
const withVanillaExtract =
require('next-vanilla-extract')(/* Your custom @vanilla-extract/webpack-plugin config */);
module.exports = withVanillaExtract(/* Your custom Next.js config */);
- Add the Babel plugin to your
.babelrc
file
{
"presets": ["next/babel"],
"plugins": ["@vanilla-extract/babel-plugin"]
}
License
MIT
1.0.0
3 years ago