Skip to content

site-config: adding a new plugin to remove unused CSS at build time.#6945

Merged
ritesh-karankal merged 6 commits intolayer5io:masterfrom
amishhaa:plugin
Oct 5, 2025
Merged

site-config: adding a new plugin to remove unused CSS at build time.#6945
ritesh-karankal merged 6 commits intolayer5io:masterfrom
amishhaa:plugin

Conversation

@amishhaa
Copy link
Contributor

Description

This PR is a part of #6930 minify css, #6929 reduce unused css, #6927 minify css.
Reducing unused CSS to speed up performance of our web pages.
#6924 minify css and reduce unused css.
Screenshot 2025-09-30 at 5 10 56 PM
Results after adding this plugin:

Screenshot 2025-09-30 at 4 45 06 PM

Notes for Reviewers
Adding this plugin was also the recommended approach by PageSpeed insights as highlighted by the screen shot above.

Signed commits

  • [YES] Yes, I signed my commits.

Copy link
Member

@Rajesh-Nagarajan-11 Rajesh-Nagarajan-11 left a comment

Choose a reason for hiding this comment

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

Build failed kindly check out that and fix ASAP

@amishhaa
Copy link
Contributor Author

amishhaa commented Sep 30, 2025

@Rajesh-Nagarajan-11, build is failing due to some deep underlying issue regarding html static file builds caused by Css that is being removed by the plugin, I am looking into it, but it might require a bit more time than usual, I will try to fix it ASAP!!

@amishhaa amishhaa force-pushed the plugin branch 2 times, most recently from b0d4e02 to 45a93ae Compare September 30, 2025 17:33
@Rajesh-Nagarajan-11
Copy link
Member

DCO ⚠️

@l5io
Copy link
Contributor

l5io commented Sep 30, 2025

🚀 Preview for commit a05433b at: https://68dc17e588b8c3653fbd52b2--layer5.netlify.app

@amishhaa
Copy link
Contributor Author

Enlist is not failing due to my changes, this PR LGTM, I'll look into fixing this Enlist failure soon. cc: @Rajesh-Nagarajan-11

@Rajesh-Nagarajan-11
Copy link
Member

Rajesh-Nagarajan-11 commented Oct 1, 2025

If eslint failure not related to your changes means no need leave it , create a new pr for eslint fix

@amishhaa
Copy link
Contributor Author

amishhaa commented Oct 1, 2025

@Rajesh-Nagarajan-11 sure!

@Rajesh-Nagarajan-11
Copy link
Member

Sync your branch to recent commits

@amishhaa
Copy link
Contributor Author

amishhaa commented Oct 2, 2025

@Rajesh-Nagarajan-11 done!

Signed-off-by: amisha <amishhhaaaa@gmail.com>
@l5io
Copy link
Contributor

l5io commented Oct 2, 2025

🚀 Preview for commit 5cc9813 at: https://68de3fb634c47f62c7d3617d--layer5.netlify.app

@l5io
Copy link
Contributor

l5io commented Oct 2, 2025

🚀 Preview for commit acc294b at: https://68dea5007a7b5f49213158cf--layer5.netlify.app

@l5io
Copy link
Contributor

l5io commented Oct 3, 2025

🚀 Preview for commit e6ea923 at: https://68dfa0e83d69dae39b1dbadd--layer5.netlify.app

@l5io
Copy link
Contributor

l5io commented Oct 3, 2025

🚀 Preview for commit 8f94a6b at: https://68dfdf5e7ae5ec8156997b66--layer5.netlify.app

@amishhaa
Copy link
Contributor Author

amishhaa commented Oct 4, 2025

Hello, I have resolved conflicts a few times already, could we please review and merge this before it diverges again? Thank you. cc: @Rajesh-Nagarajan-11 @ritesh-karankal

@l5io
Copy link
Contributor

l5io commented Oct 4, 2025

🚀 Preview for commit 7aaf49f at: https://68e0e404e7ed38b6a6dad04a--layer5.netlify.app

Copy link
Member

@Rajesh-Nagarajan-11 Rajesh-Nagarajan-11 left a comment

Choose a reason for hiding this comment

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

LGTM @amishhaa Great work !!

@l5io
Copy link
Contributor

l5io commented Oct 5, 2025

🚀 Preview for commit 6c592a6 at: https://68e20dadb720257189b771db--layer5.netlify.app

@ritesh-karankal ritesh-karankal merged commit 6047df2 into layer5io:master Oct 5, 2025
4 checks passed
@saurabhraghuvanshii saurabhraghuvanshii added the hacktoberfest-accepted Happy contributing! label Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments