Skip to content

Commit c6c79a7

Browse files
committed
feat: support prefix #67
1 parent 7b98c70 commit c6c79a7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/lib/core/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@ export async function init(): Promise<Core> {
7373
}
7474
});
7575
}
76+
const prefix = processor.config('prefix');
77+
if (prefix) {
78+
utilities = utilities.map(i => prefix + i);
79+
for (const color of colors) {
80+
color.label = prefix + color.label;
81+
}
82+
for (const dynamic of dynamics) {
83+
dynamic.label = prefix + dynamic.label;
84+
}
85+
}
7686
return {
7787
processor,
7888
colors,

0 commit comments

Comments
 (0)