angular-cli


Importing Global SCSS into Component SCSS with Angular-CLI


Is there an easy way to import global variables into components? I have tried importing my variables.scss file every way I can. Here's the basic app structure:
| app
| components
| component
| component.scss
| scss
| variables.scss
The only way I can get this to work is #import '../../../scss/variables'; which is not ideal. I'd much rather import the same exact line no matter where I am.
Is there a simple #import that I just missed trying? I've tried these and can't get it to work:
app/scss/variables
/app/scss/variables
scss/variables
/scss/variables
/src/app/scss/variables
src/app/scss/variables

Related Links

Use angular-cli proxy for multiple backends
chunk files size are multiplied by 5 on build size ng build --prod
AngularCli: disable minification
Angular Cli e2e element explorer not responding
Angular cli generate a service and include the provider in one step
Angular-cli not generating dist directory with ng build
How to update service json or array value on click in angular2?
How to revert from Angular-cli to Angular without cli for server-side rendering with Angular Universal
How to change file index outside the root
angularCLI Access-Control-Allow-Origin Multiple Origin Domains
Angular CLI how to merge json files
Angular CLI (ng) use single instead of double quotes
can't install angular cli on ubuntu 16.04
How to solve No 'Access-Control-Allow-Origin' header is present on the requested resource with angular 2 service written with angular-cli?
Usage of watch parameter in eject command of Angular CLI
Serving and testing a bundle after ng build

Categories

HOME
sidekiq
semantic-ui
jenkins-plugins
oauth
xamarin.android
paramiko
google-tag-manager
puppet
concourse
wampserver
recyclerview
dataframe
tizen-wearable-sdk
openwrt
getorgchart
glpk
ejs
mule-studio
google-people
movies
uiautomator
apply
hhvm
profile
jflex
tampermonkey
i3
vertex-buffer
construct-2
receipt
salesforce-chatter
mapguide
precedence
jquery-cycle2
rider
zero
wsadmin
web-development-server
jrules
constants
double-buffering
ideone
walmart-electrode
jags
pinvoke
spring-data-hadoop
heroku-postgres
castle-dynamicproxy
laravel-query-builder
onresume
icefaces
uistackview
metalsmith
mercurial-hook
squirrel
remoteapp
scriptlet
android-recyclerview
hateoas
schtasks.exe
hyperthreading
swift2.1
google-plus-one
custom-url
musl
orientation-changes
moai
line-numbers
errorprovider
humanizer
proxies
valence
smartystreets
internal
real-time-updates
leptonica
vmware-server
ng-pattern
vt100
autostart
blockingqueue
javascriptserializer
n-layer
static-variables
deploying
path-manipulation
ruby-debug
squeel
chatroom
pantheios
chdatastructures

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App