SCSS Import Relative to Root

后端 未结 5 1049
不思量自难忘°
不思量自难忘° 2020-12-09 01:12

I\'m in the process refactoring an Angular application and as I\'m moving components around to new directory locations, I\'m finding that dealing @import paths

5条回答
  •  自闭症患者
    2020-12-09 01:35

    If I've understood the question correctly then using @import 'src/app/...' works correctly.

    e.g.

    @import 'src/mixins';
    

    Note that there's no leading backslash on the path.

    (this is tested on Angular 9)

提交回复
热议问题