-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add alias @ for symbol start entity #7
base: master
Are you sure you want to change the base?
Conversation
d0e932b
to
fc0c09d
Compare
Fix error: npm is known not to run on Node.js v0.12.18 You'll need to upgrade to a newer version in order to use this version of npm. Supported versions are 4, 6, 7, 8, 9. You can find the
fc0c09d
to
a7fbdcf
Compare
@@ -22,6 +22,14 @@ function buildSelector (ctx, mod) { | |||
} | |||
|
|||
export default postcss.plugin('pobem', () => (css) => { | |||
css.walkAtRules(/block|elem|mod/, function (rule) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilyar может стоит объединить это с обходом на 33 строке?. Зачем 2 раза делать практически аналогичные операции?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это не возможно т.к. walkAtRules обходит rule типа atrule, walkRules обходит rule типа rule, возможно это получится объединить если использовать walk
https://t.me/bem_ru/24592
@belozer почему возникает желание объединить?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Думаю будет верно подумать в сторону выделить процесс разбора в отдельный метод.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilyar не так прочитал метод )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@belozer а что думаешь о предложении?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Скорее всего будет bem-scope стиль. Наиболее близкий к ванильному css
Fix #6