admin管理员组文章数量:1357639
So, not sure if i'm looking in the right direction, but trying to use the latest sass, i'd like to replace my @import's with @use's like a good boy. Let's say my folder structure is this:
styles/
├─ main.scss
├─ _variables.scss
├─ components/
│ ├─ checkbox.scss
│ ├─ input.scss
│ ├─ radio.scss
and then in my main.scss I wanna do this:
@use "variables" as *;
@use "components/checkbox";
@use "components/radio";
@use "components/input";
and in my checkbox.scss, radio.scss, and input.scss i want to use those variables without declaring @use "variables" again in each file.
Is this possible? Because this won't work out of the box i think :(
本文标签: cssscsshow to only import use 39variables39 in main filenot in all filesStack Overflow
版权声明:本文标题:css - scss - how to only import @use 'variables' in main file, not in all files - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744079236a2587323.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论