Skip to content

PostHTML plugin to remove redundant inline CSS

License

Notifications You must be signed in to change notification settings

gpittarelli/posthtml-minify-inline-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

posthtml-minify-inline-css

Finds redundant inline CSS styles in HTML and removes them. This is very useful for emails, where styles need to be inline for client support.

For example, if you have a node like:

<td style="color: red;width: 100px;"></td>

Then the "width" attribute may be meaningful for layout, but the "color" attribute cannot affect anything and will be removed by this package.

License

MIT

About

PostHTML plugin to remove redundant inline CSS

Resources

License

Stars

Watchers

Forks

Packages

No packages published