mirror of
https://github.com/iconify/iconify.git
synced 2025-01-07 07:34:22 +00:00
fix(tailwind): run plugin script only once
This commit is contained in:
parent
ad8305400c
commit
1152246322
@ -9,8 +9,8 @@ function iconifyPlugin(
|
|||||||
icons: string[] | string,
|
icons: string[] | string,
|
||||||
options: IconifyPluginOptions = {}
|
options: IconifyPluginOptions = {}
|
||||||
) {
|
) {
|
||||||
|
const rules = getCSSRules(icons, options);
|
||||||
return plugin(({ addUtilities }) => {
|
return plugin(({ addUtilities }) => {
|
||||||
const rules = getCSSRules(icons, options);
|
|
||||||
addUtilities(rules);
|
addUtilities(rules);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user