Node CLI package that removes all unused CSS classes and ids
MIT License
Npm CLI package that removes all unused CSS classes and ids from your project.
To remove useless/unused CSS selectors from a project to increase performance and readability.
If you create a project from scratch or use templates there is a high chance of creating CSS selectors that you will finally not use and will be downloaded by the user and will make the page performance slower.
With implodeCss
you will be able to detect and/or remove these unused CSS.
sudo npm install -g @josee9988/implode-css
If you do not know how to use the package, show the manual by using:
implodeCss -h # to show the manual
To be prompted by the package, do not use arguments, we will help you:
implodeCss # it will guide you
Specify folder (actual / absolute path):
implodeCss . # actual folder, you must use always absolute paths but with the dot
implodeCss /home/user/project # folder /home/user/project
Audit (detect but do not do any action):
implodeCss . -a # audit actual package
Fix (remove all unused CSS selectors):
implodeCss . -f # audit actual package
Ignore folders:
implodeCss . -a -i src,data # audit actual package and do not look into folders: /src/, /data/
Specify port (default = 4949):
implodeCss . -a -p 8080 # audit actual package and create the server on port 4949
implodeCss . -a
implodeCss -h
Also check the npm page with the package
β οΈRemember that this tool does not guarantee a 100% effectiveness and may have some issue at some point. Use it at your own risk and always do backups of your code.β οΈ
Made with a lot of β€οΈβ€οΈ by @Josee9988