Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 439 Bytes

rm-px.md

File metadata and controls

23 lines (20 loc) · 439 Bytes

rm-px

  • Default configuration:
{
	"rules": {
		"rm-px": true
	}
}
  • Explanation:
    • Remove px units and 0 units
    • Special case: When font-size, letter-spacing, word-spacing are located in the style attribute or style tag, the px unit will not be removed

E.g:

<rect fill="red" width="100px" height="100px" rx="0pt"/>

After optimization will become:

<rect fill="red" width="100" height="100" rx="0"/>