Skip to content

Commit

Permalink
fix(gatsby-plugin-styled-components): add namespace option (#29095)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanchu authored Jan 25, 2021
1 parent 8b6bfa6 commit 1a09302
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/gatsby-plugin-styled-components/src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ exports.pluginOptionsSchema = ({ Joi }) =>
minify: Joi.boolean()
.default(true)
.description(`Remove the whitespace from the CSS.`),
namespace: Joi.string()
.default(``)
.description(
`The namespace will ensure that your class names will be unique; this setting is handy when you are working with micro frontends where class name collision can occur.`
),
transpileTemplateLiterals: Joi.boolean()
.default(true)
.description(`Transpile tagged template literals into optimized code.`),
Expand Down

0 comments on commit 1a09302

Please sign in to comment.