$ python3 main.py
Do you have more than 1 .css file? (yes/no):
Path to directory / Path to .css file:
Read file1.css
Read file2.css
Do you have more than 1 .html file? (yes/no):
Path to directory / Path to .html file:
Read index.html
Identified [ ] unique classes and [ ] unique IDs.
Unused class: .[ ] : file1.css, line 0, 00
Unused ID: #[ ] : file2.css, line 000, 0
May I remove these unused rules and output new .css files? (yes/no):
Cleaned file1.css
Cleaned file2.css- prompts user for path to/filename of singular or multiple .css file(s)
- prompts user for path to/filename of singular or multiple .html file(s)
- prints unused classes and IDs, corresponding files and line numbers
- re-writes .css files without unused classes and IDs
TODO:
- thoroughly edgecase re-writing stage
- fix comments disappearing in media queries?
- remove extra newlines