-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Bug Report or Feature Request (mark with an x)
- [X ] bug report -> please search issues before submitting
- [ ] feature request
Versions.
@angular/cli: 1.4.1
node: 6.11.2
os: win32 ia32
@angular/animations: 4.4.3
@angular/common: 4.4.3
@angular/compiler: 4.4.3
@angular/core: 4.4.3
@angular/forms: 4.4.3
@angular/http: 4.4.3
@angular/platform-browser: 4.4.3
@angular/platform-browser-dynamic: 4.4.3
@angular/router: 4.4.3
@angular/cli: 1.4.1
@angular/compiler-cli: 4.4.3
@angular/language-service: 4.4.3
typescript: 2.3.4
Repro steps.
I've got font-awesome installed, and am able to get it to work in the globals if I set the fa-font-path variable, relative to src/style.scss, before including:
$fa-font-path : '../node_modules/font-awesome/fonts';
@import 'tm-font-awesome/tm-font-awsome';
However, I'd like to use this at the component level, as well, so I was going to place the font path and the import, plus some of my own mixins in a file that I would then import: _my-font-awesome.scss
Unfortunately, it appears that the fa-font-path is relative to the root importer (style.scss, or app/my-component/my-component.scss), and is therefore not that same, depending on the path of the component. Is there some other way to do this so I don't have to set the $fa-font-path in every component?
The log given by the failure.
Desired functionality.
I would like to be able to import the font-awesome scss without having to define $fa-font-path everywhere.