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

Getting error after Angular cli update
Does angular-cli uses rollup to do ahead-of-time compilation and adding all into one file?
Angular CLI install error
Using glob for assets in angular-cli throws error
Importing Global SCSS into Component SCSS with Angular-CLI
Error during AOT build with angular-cli 24 and Angular 2.4.1
Add importer to node-sass in angular-cli project
angular-cli#1.0.0-beta.23 (2016-12-15) NOT on npm
Angular cli for existing github project
How to pass config data to NgModule so NgModule will be compiled with AOT
Cloning a repo based on Angular CLI
How can I speed up Angular CLI Live Reload - 1-2 minutes per change
Generating a barrel when calling ng g component <myName>
Setting up tether-drop to work with angular-cli#1.0.0-beta.24
Angular CLI (AOT) gives error: ERROR in Cannot determine the module for class
Angular CLI - ng serve won't run unless I specify port

Categories

HOME
rest
dotnetrdf
symfony
ssas-2012
erlang
vb6
bing
google-sheets-api
zend-framework2
mainframe
sbt-assembly
terrain
deeplearning4j
dropbox
ipfs
window
onsen-ui2
store
future
rapidjson
eclipse-luna
spring-cloud-config
cross-platform
r-lavaan
android-toolbar
grub2
anychart
zend-framework-mvc
boolean-expression
cvs2svn
jconsole
pdfsharp
superagent
pitest
pygooglechart
jackson-dataformat-csv
referenceerror
rowcount
protobuf-net
outsystems
geopy
modulo
reactivemongo
remote-server
jboss-esb
broadleaf-commerce
bigcartel
liquid-xml
poco-libraries
delphi-10.1-berlin
exiftool
stdclass
median
scalafx
fastq
php-ews
sapui
seamless-immutable
spring-data-hadoop
gce
mercury
adler32
rxvt
autoresize
emgu
cleditor
activeweb
mongoose-populate
visible
gitweb
radians
uiprogressview
shipitjs
spring-lemon
eml
acm
cctray
hyperthreading
selendroid
urn
ubercart
sparse-file
pgm
sysfs
consensus
libsndfile
iostream
java-collections-api
io.js
bsp
kraken.js
httpcontext
crystal-reports-10
loop-invariant
nscolor
surveyor-gem
lame
client-side-scripting
mstsc
cgimageref
xslkey
appfog
android-contextmenu
wpdb
phpsh
mvs
windows-phone-7-emulator
applicationcontext
userid
electronic-signature
coff
handwriting
junit3
clause
pantheios
external-assemblies
front-controller
savestate
filetime
longjmp
database-diagramming

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