mirror of
https://github.com/wassname/talk.git
synced 2026-08-15 12:55:10 +08:00
Add comment
This commit is contained in:
@@ -91,12 +91,14 @@ module.exports = {
|
||||
const selectors = getCSSSelectors(textCSS, path);
|
||||
const component = basename(path, extname(path));
|
||||
|
||||
// Prefix class names with component name.
|
||||
Object.keys(selectors).forEach(k => {
|
||||
selectors[k] = selectors[k]
|
||||
.split(/\s+/)
|
||||
.map(v => `${component}-${v}`)
|
||||
.join(" ");
|
||||
});
|
||||
|
||||
const exprt = JSON.stringify(selectors);
|
||||
return `module.exports = ${exprt}`;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user