-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with angular inlineCritical optimization #900
Comments
Same issue here. As we use
The workaround mentioned in nrwl/nx#4381 (comment) "fixed" the issue temporarly. |
I tried to provide a simple sandbox to reproduce this problem. I created a small sample project https://github.com/loetscher/ngx-toastr-issue-ninehundred (angular starter with these two libraries) The prod build of this project fails, but if I:
everything works fine. See https://github.com/loetscher/ngx-toastr-issue-ninehundred/blob/main/src/styles.scss It looks like there is a problem in combination with those two projects. Update: Update2:
The definition is done in Update 3: |
Hello.
Due to a issue in reworkcss/css#154, it is impossible to use Angular's inlineCritical optimization (angular/angular-cli#20760).
The ngrx-toastr code that causes this issue is located here
ngx-toastr/src/lib/toastr.css
Lines 114 to 129 in f2c4c42
Would it be possible to try a different approach until the https://github.com/reworkcss/css library is fixed? By the looks of things there is a reworkcss/css#157 that fixes the issue, but I have no idea if or when it will be merged.
Thanks.
The text was updated successfully, but these errors were encountered: