Remove comments and unnecessary whitespaces from a CSS file.
It’s very simple.
g++ -std=c++11 -o minify minify.cpp
or, if you have GNU Make
installed, run make
to compile the program, and make test
for running the program on the example.css
file.
make test
minify <path-to-a-css-file> <ouput-file-path>