Answer the question
In order to leave comments, you need to log in
How can styles.scss be seen from any part of the application?
NX
is used to combine several angular projects into one . It has a global styles.scss file. it is located in the following location in the directory tree:
apps
appName
src
styles.scss
libs
lib1
lib2
lib3
Answer the question
In order to leave comments, you need to log in
You need to specify the directory where you want to watch the angular project, that is, for each project you need to add settings in the angular.json file, namely add stylePreprocessorOptions:
...
"projects": {
"app_name": {
.....
"architect": {
"build": {
....
"options": {
....
"stylePreprocessorOptions": {
"includePaths": ["apps/appName/src/", "apps/themes/"]
},
}
}
}
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question