JSPM

posthtml-minify-inline-css

0.0.9
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 39
    • Score
      100M100P100Q64442F
    • License MIT

    PostHTML plugin to minify inline CSS styles

    Package Exports

    • posthtml-minify-inline-css

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (posthtml-minify-inline-css) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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