From b24a24ec58cbd08c96e0192cf42eb3df92706cc5 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Tue, 7 Jul 2020 14:13:38 +0300 Subject: [PATCH] refactor(docs-infra): avoid Material style duplication warning (#37898) This commit removes some duplicate imports of Material themes and theming-related utilities. While this change does not have any impact on the size of the generated `styles.css` file, it silences a build warning pointing to [Avoiding duplicated theming styles][1]. [1]: https://github.com/angular/components/blob/db4b0cd1bff0bbb1741d22975bcfe1069aea3a53/guides/duplicate-theming-styles.md PR Close #37898 --- aio/angular.json | 6 +++--- aio/src/styles.scss | 3 --- aio/src/styles/main.scss | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 aio/src/styles.scss diff --git a/aio/angular.json b/aio/angular.json index 222b569341..6bcb5f287b 100644 --- a/aio/angular.json +++ b/aio/angular.json @@ -58,7 +58,7 @@ } ], "styles": [ - "src/styles.scss" + "src/styles/main.scss" ], "scripts": [], "budgets": [ @@ -158,7 +158,7 @@ } ], "styles": [ - "src/styles.scss" + "src/styles/main.scss" ], "scripts": [] } @@ -193,4 +193,4 @@ } }, "defaultProject": "site" -} \ No newline at end of file +} diff --git a/aio/src/styles.scss b/aio/src/styles.scss deleted file mode 100644 index 9576ae3458..0000000000 --- a/aio/src/styles.scss +++ /dev/null @@ -1,3 +0,0 @@ -/* You can add global styles to this file, and also import other style files */ -@import './styles/ng-io-theme'; -@import './styles/main.scss'; diff --git a/aio/src/styles/main.scss b/aio/src/styles/main.scss index 8ca81bc8f8..b3edeaa6f1 100755 --- a/aio/src/styles/main.scss +++ b/aio/src/styles/main.scss @@ -1,5 +1,4 @@ // import global themes -@import '~@angular/material/theming'; @import './ng-io-theme'; // import global variables