@static-styled-plugin/next-plugin
v0.3.2
Published
A plugin that makes styled-components zero-runtime.
Downloads
209
Maintainers
Readme
static-styled-plugin
A plugin that makes styled-components zero-runtime.
Installation
npm install @static-styled-plugin/next-plugin
Setup
// next.config.mjs
import { withStaticStyled } from '@static-styled-plugin/next-plugin'
const nextConfig = {
compiler: {
styledComponents: true,
},
}
export default withStaticStyled({
themeFilePath: './app/theme.ts'
})(nextConfig)