作者:mobiledu2502869077 | 来源:互联网 | 2022-11-12 14:33
我正在做白标角度网络应用程序.是否可以在header.scss文件中导入我的config.js文件?
我尝试在我的header.scss文件中导入它:
@import '../../mixins.scss';
@import { themeColor } '../../config';
header{background-color: themeColor.backgroundColor; color:themeColor.color}
我的配置文件:
export const themeColor = (buttonColor, textColor) =>({
backgroundColor: buttonColor,
color:textColor
})
但是,我收到了一个错误.如何正确导入?
1> Quentin..:
没有.Sass没有处理Javascript代码的机制.