@biowaffeln/next-linaria

Linaria@3 configuration for Next.js projects. Fixes an issue with global styles, credit goes to @cdebutton.

Usage no npm install needed!

<script type="module">
  import biowaffelnNextLinaria from 'https://cdn.skypack.dev/@biowaffeln/next-linaria';
</script>

README

Linaria Next

Linaria@3 configuration for Next.js projects. Fixes an issue with global styles, credit goes to @cdebutton.

Installation

npm install @biowaffeln/next-linaria @linaria/webpack-loader

Setup

In your next.config.js:

const withLinaria = require("@biowaffeln/next-linaria");

module.exports = withLinaria(/* webpack config here */);