Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 587 Bytes

README.md

File metadata and controls

21 lines (16 loc) · 587 Bytes

next-twin

make next12 use tailwind + styled-component

why

similar issue

next12 use swc complier and not support twin.macro, and can't use tailwind in styled-conpoment

how to use

decorate your next.config.js

  const withTwin = require('./next-twin.js')
  module.exports = withTwin({
    experimental: {
      // Enables the styled-components SWC transform
      styledComponents: true,
    }
  })