-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix(material/schematics): gracefully skip broken css files #25767
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/material/schematics/ng-generate/mdc-migration/rules/theming-styles.ts
Outdated
Show resolved
Hide resolved
src/material/schematics/ng-update/migrations/legacy-components-v15/index.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, good fix with the regex. Interesting that maps are part of the source tree at the same time though
src/material/schematics/ng-generate/mdc-migration/rules/theming-styles.ts
Outdated
Show resolved
Hide resolved
also don't treat files like something.css.map as a CSS file.
Yeah people shouldn't have broken css or map files in the source tree I guess, but just making the script a little more robust so it doesn't blow up when it encounters those kinds of things. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
also don't treat files like something.css.map as a CSS file.