Skip to content

Commit d9d7074

Browse files
nathanchuaxe312ger
authored andcommitted
fix(gatsby-plugin-styled-components): add namespace option (#29095)
1 parent f82c8b7 commit d9d7074

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/gatsby-plugin-styled-components/src/gatsby-node.js

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ exports.pluginOptionsSchema = ({ Joi }) =>
2020
minify: Joi.boolean()
2121
.default(true)
2222
.description(`Remove the whitespace from the CSS.`),
23+
namespace: Joi.string()
24+
.default(``)
25+
.description(
26+
`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.`
27+
),
2328
transpileTemplateLiterals: Joi.boolean()
2429
.default(true)
2530
.description(`Transpile tagged template literals into optimized code.`),

0 commit comments

Comments
 (0)