We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
同一段代码:
.foo { &:global.bar { color: #fff; .hey { color: #fff; } } }
在 mako@0.8.x 中会编译成:
mako@0.8.x
.foo-xxx.bar { color: #fff; } .foo-xxx.bar .hey { color: #fff; }
但在 mako@0.9.x 中会编译成:
mako@0.9.x
.foo-xxx.bar-yyy { color: #fff; } .foo-xxx.bar-yyy .hey { color: #fff; }
:global.xx 并非 CSS Modules 文档中提到的用法,不知道是否是 undefined behavior,需要对比 css-loader 来确认是 SWC CSS 的 bug 还是规范以外的用法,以及确认实现同等语义的正确范式应该是怎样的。
:global.xx
另外 mako@0.9.x 还有一些『诡异』(不确定正确结果应该是什么)的行为,比如:
.foo { :global { &.bar { color: #fff; } } } // 会被编译成 .foo-yyy { color: #fff; }
The text was updated successfully, but these errors were encountered:
stormslowly
No branches or pull requests
同一段代码:
在
mako@0.8.x
中会编译成:但在
mako@0.9.x
中会编译成::global.xx
并非 CSS Modules 文档中提到的用法,不知道是否是 undefined behavior,需要对比 css-loader 来确认是 SWC CSS 的 bug 还是规范以外的用法,以及确认实现同等语义的正确范式应该是怎样的。另外
mako@0.9.x
还有一些『诡异』(不确定正确结果应该是什么)的行为,比如:The text was updated successfully, but these errors were encountered: