Is there an advanced CSS minifier/compiler that does things like strip redundancy and comma separate identical rules?

后端 未结 11 1802
暗喜
暗喜 2020-12-09 03:22

For example

input{margin:0}body{margin:0;background:white}

would be shorter written like this

input,body{margin:0}body{back         


        
11条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-09 04:03

    If you use visual studio, you could install the Web Essentials extension. It has experimental support for cleaning and merging CSS rules, but not exactly like you subscribed. It, for one, creates more whitespace, but it does combine css tags, that have (partially) equal styles eg..

提交回复
热议问题