New Prague, Minnesota

    html-bricks-plugin-html-minify

    0.0.2 • Public • Published

    html-bricks-plugin-html-minify

    Html minification for html-bricks using HTMLMinifier.

    You should use this as the last plugin in your config, as it will remove attributes that might be used by other plugins.

    Requirements

    html-bricks >= 0.3.

    Installation

    Install using npm

    npm install --save-dev html-bricks-plugin-html-minify

    Then include the plugin in your config

    {
      "plugins": [
        "plugin-html-minify"
      ]
    }

    Default config

    const options = {
      collapseBooleanAttributes: true,
      caseSensitive: true,
      collapseInlineTagWhitespace: true,
      collapseWhitespace: true,
      conservativeCollapse: true,
      continueOnParseError: false,
      html5: true,
      decodeEntities: true,
      keepClosingSlash: false,
      minifyCSS: true,
      minifyJS: true,
      minifyURLs: false,
      preserveLineBreaks: false,
      preventAttributesEscaping: false,
      quoteCharacter: '"',
      removeAttributeQuotes: true,
      removeComments: true,
      removeEmptyAttributes: true,
      removeOptionalTags: true,
      removeRedundantAttributes: true,
      removeScriptTypeAttributes: true,
      removeStyleLinkTypeAttributes: true,
      useShortDoctype: true
    }

    Install

    npm i html-bricks-plugin-html-minify

    DownloadsWeekly Downloads

    4

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    4.39 kB

    Total Files

    4

    Last publish

    Collaborators

    • gustavgb