Angular CLI builds styles before replacing files #11504
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Bug Report or Feature Request (mark with an
x
)Area
Versions
Desired functionality
When i build a project with ng build specifying the desired configuration it replaces files as i want.
But in order to replace styles i put a file called theme.scss in global scss loaded files, then i replace it with
The file replacement works correctly and everywhere in my project when i call theme.scss i get theme2.scss response.
However if in a specific component style i use vars from theme.scss vars are not called from theme2 but always from theme.
I think the problem might be that angular is replacing my theme.scss after the compiling of all my component styles.
I think it is an issue because the default behaviour should be that any call to my theme.scss file should be replaced by a theme2.scss file call, even in specific components.
The text was updated successfully, but these errors were encountered: