在SCSS中,哪个更好?
@import '~src/styles/variables';
@import 'src/styles/variables';
~是必要的吗?
~
发布于 2020-01-27 14:33:24
~前缀与webpack等工具一起使用,以区分别名解析和库解析。
在别名中使用~,否则更倾向于相对导入
https://stackoverflow.com/questions/59933133
相似问题