Skip to content

A Python script that minifies CSSBattle code, packaged into a Flask web app. Try it out below:

License

Notifications You must be signed in to change notification settings

arnav-exe/cssbattle-minifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Code minifier for CSSBattle.dev

This Python script performs a few functions to intelligently minify your code for the online code golfing game CSSBattle.dev

Optimisations:

  • removes all elements that are comments
  • removes last set of lines:
    • final closing curly bracket "}"
    • closing style tag "</style>"
  • removes last semicolon inside each class
  • removes all whitespaces in between valid punctuation
  • removes units for width and height (EG: width: 100px -> width: 100)
  • removes all newlines

About

A Python script that minifies CSSBattle code, packaged into a Flask web app. Try it out below:

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages