Skip to content

Commit 84d410e

Browse files
committed
Added additional syntax @define-selector
Added additional optional syntax "@define-selector" to match conventions of other popular postcss plugins such as @define-mixin & @define-extend.
1 parent 9e24886 commit 84d410e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function customSelector(options) {
2424

2525
// 读取自定义选择器
2626
styles.eachAtRule(function(rule) {
27-
if (rule.name !== "custom-selector") {
27+
if (rule.name !== "custom-selector" && rule.name !== "define-selector") {
2828
return
2929
}
3030

0 commit comments

Comments
 (0)