scss中@import路径问题
我们在scss中引用其他的scss文件
相对路径:
@import "../../helpers/_mixins.scss";
@import "../../helpers/_utils.scss";
@import "../../themes/index.scss";
如何使用路径别名:
1、在webpack中添加路径的别名

2、可以在@import中使用~@scss来使用此别名
@charset "UTF-8";
@import "~@scss/themes/index.scss";
@import "~@scss/helpers/_mixins.scss";
@import "~@scss/helpers/_utils.scss";

浙公网安备 33010602011771号