We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45fcf24 commit 3a3a9b1Copy full SHA for 3a3a9b1
src/material/schematics/ng-update/index.ts
@@ -59,7 +59,9 @@ function renameMdcTokens(): Rule {
59
if (shouldRenameTokens(path)) {
60
const content = tree.readText(path);
61
const updatedContent = content.replace('--mdc-', '--mat-');
62
- tree.overwrite(path, updatedContent);
+ if (content !== updatedContent) {
63
+ tree.overwrite(path, updatedContent);
64
+ }
65
}
66
});
67
};
0 commit comments