You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found and fixed a bug while adding this project to my in-progress website. CSS filepaths were truncated to their filenames, so I added a (sadly O(n)) lookup function to extend these filenames into paths.
Parser is now more flexible when handling uniquely styled code. Handles removing all rules on a line, rules defined entirely on one line, psuedo-classes and all of their complexities, as well as media queries.
Prepends empty style rules to .css files where rules were previously undefined. If user doesn't wish to automate cleaning process, they may download a .txt file with the results of parsing their files.
The parser is functional! v2.0 includes the basic error checking and flexibility of input which were lacking in v1.0. Users can parse singular or multiple .css and .html files, as well as receive (minimal) validation of the files which were read and the number of unique classes and IDs which were parsed. Soon, I hope to include the file name alongside its unused style rules. Eventually, I'd like to remove that style rule from the .css file, outputting a new file entirely.