cssmin

Removes line breaks, comments and spaces around symbols, in a CSS file.
git clone git://soucy.cc/cssmin.git
Log | Files | Refs

commit c8ecb8284161673a00021e518c2aef2e8211e7ca
parent 29c3dbf20ae00a1be62c573e81fcc6ab0ec0703b
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Fri, 19 Nov 2021 20:58:23 -0500

Remove the plus sign and change the pattern for remove comments.

Diffstat:
Mcssmin | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cssmin b/cssmin @@ -26,8 +26,8 @@ do if extension == '.css' then local cssmin = read(file) :gsub('\n', '') -- removes line-breaks - :gsub('%s*([:;,*+>{}~])%s+', '%1') -- removes spaces around :;,*+>{}~ - :gsub('(/%*).+(%*/)', '') -- removes comments + :gsub('%s*([:;,*>{}~])%s+', '%1') -- removes spaces around :;,*>{}~ + :gsub('/%*.-%*/', '') -- removes comments return print(cssmin) else