Skip to content

Releases: jckdm/CSS-parser

v3.1

13 Mar 20:41

Choose a tag to compare

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.

v3.0

12 Jul 01:42

Choose a tag to compare

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.

v2.9

04 Jul 02:55

Choose a tag to compare

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.

v2.8

30 Jun 04:24

Choose a tag to compare

Now identifies undefined classes & IDs in HTML! Now actually does what v2.5 claimed to do! Now with more ternary operators! And comments!

v2.5

21 Jun 16:32

Choose a tag to compare

Cleans multiple files, removing all unused classes & IDs, then outputting new files.

v2.2

12 Jun 16:42

Choose a tag to compare

v2.2 includes the file name and line number alongside each unused style rule. Still hoping to remove the style rule from the .css file.

Initial Release

10 Jun 14:06

Choose a tag to compare

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.