@raygesualdo/gatsby-plugin-babel-styled-components
v1.0.1
Published
Gatsby plugin to add the styled-components babel plugin
Downloads
9
Maintainers
Readme
gatsby-plugin-babel-styled-components
A Gatsby plugin to add the styled-components babel plugin.
Install
$ npm install --save @raygesualdo/gatsby-plugin-babel-styled-components
How to Use
Add the plugin to your gatsby-config.js
file.
plugins: ['@raygesualdo/gatsby-plugin-babel-styled-components']
This plugin automatically enables the ssr
feature. All other features can be configured via this plugin's config object.
plugins: [
{
resolve: '@raygesualdo/gatsby-plugin-babel-styled-components',
options: {
ssr: true, // override default
displayName: false,
preprocess: true,
minify: false,
transpileTemplateLiterals: false,
},
},
]