📜  如何以角度导入 scss 文件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:41.008000             🧑  作者: Mango

代码示例1
In the new angular v6, importing sass files is a little different from the previous version.

I just needed to import like this (in a component stylesheet)

@import "~src/sass/variables";    // note: without file extension

Now everything works fine

Thanks all for the help