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

feat: implement JS and CSS minification #70

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ayshrj
Copy link

@ayshrj ayshrj commented Sep 22, 2024

This pull request introduces robust minification tools for JavaScript and CSS, aiming to enhance the performance of web applications by reducing the size of these assets. Leveraging the capabilities of the clean-css library for CSS and terser for JavaScript, these tools ensure efficient compression techniques that strip unnecessary characters and comments while preserving the functionality of the code.

Key Components of This Feature:

  • JavaScript Minification with Terser: Implements the terser library to minify JavaScript files, effectively removing whitespace, comments, and other non-essential characters, ensuring that the output is as compact as possible without sacrificing functionality.
  • CSS Minification with Clean-CSS: Utilizes the clean-css library to compress CSS files, enhancing load times and reducing bandwidth usage by optimizing the CSS in a way that also considers mobile and web performance best practices.
  • Testing: Includes comprehensive tests to verify that the minification processes maintain the integrity of the code and effectively reduce file sizes. These tests ensure that both JavaScript and CSS files are processed correctly and that their functionality remains intact after minification.

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.

1 participant