Skip to content
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

Remove redundant components import #1331

Merged
merged 1 commit into from
Feb 28, 2020
Merged

Remove redundant components import #1331

merged 1 commit into from
Feb 28, 2020

Conversation

alex-ju
Copy link
Contributor

@alex-ju alex-ju commented Feb 28, 2020

What

Remove govuk/components/all from component_support.

Why

We already import styles for components in each individual file so adding them in the component_support again inflates the scss and increased the compilation time unnecessarily.

Visual Changes

TBD

We already import styles for components in each individual file so adding them here again inflates the scss and increased the compilation time unnecessarily
@bevanloon bevanloon temporarily deployed to govuk-publis-remove-red-urjnv3 February 28, 2020 11:58 Inactive
@@ -3,7 +3,6 @@
// and everything else from govuk-frontend not included in govuk_frontend_support
@import "govuk/core/all";
@import "govuk/objects/all";
@import "govuk/components/all";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ohhhh... okay, I get it now. Great spot, thanks.

@andysellick andysellick mentioned this pull request Feb 28, 2020
@alex-ju alex-ju merged commit 516a13b into master Feb 28, 2020
@alex-ju alex-ju deleted the remove-redundant-import branch February 28, 2020 12:17
alex-ju added a commit that referenced this pull request Apr 24, 2020
When we decided to initialise all govuk-frontend components at once (92bef7e) we added all scripts on top of the existing imports at the components level. This commit removes the redundant import, similarly with #1331 for SCSS.
alex-ju added a commit that referenced this pull request May 21, 2020
When we decided to initialise all govuk-frontend components at once (92bef7e) we added all scripts on top of the existing imports at the components level. This commit removes the redundant import, similarly with #1331 for SCSS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants