Socket
Book a DemoInstallSign in
Socket

bridgetown-minify-html

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bridgetown-minify-html

2.0.0
bundlerRubygems
Version published
Maintainers
2
Created
Source

Bridgetown Minify HTML

Gem Version RSpec RuboCop

A Bridgetown plugin to Minify your outputted HTML.

Installation

Run this command to add this plugin to your site's Gemfile:

bundle add bridgetown-minify-html -g bridgetown_plugins

Usage

Once you've added the plugin, it'll automatically compress your outputted HTML without any additional configuration required when you run bin/bridgetown build or bin/bridgetown deploy.

Optional configuration options

Within your bridgetown.config.yml file, you have the options:

minify_html:
  enabled: true
  remove_spaces_inside_tags: true
  remove_multi_spaces: true
  remove_comments: true
  remove_intertag_spaces: false
  remove_quotes: false
  simple_doctype: false
  remove_script_attributes: false
  remove_style_attributes: false
  remove_link_attributes: false
  remove_form_attributes: false
  remove_input_attributes: false
  remove_javascript_protocol: false
  remove_http_protocol: false
  remove_https_protocol: false
  preserve_line_breaks: false
  simple_boolean_attributes: false
  compress_js_templates: false

Testing

  • Run bundle exec rspec to run the test suite
  • Or run script/cibuild to validate with Rubocop and test with rspec together.

Contributing

  • Fork it (https://github.com/bt-rb/bridgetown-minify-html/fork)
  • Clone the fork using git clone to your local development machine.
  • Create your feature branch (git checkout -b feature/my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create a new Pull Request

💌 In Loving Memory of Mike Rogers

Mike Rogers was the creator of bridgetown-minify-html and participated in the project from July 2020 until his passing in November 2021. This project is maintained by @andrewmcodes in his honor. You can find Mike's obituary here if you'd like to leave a message.

FAQs

Package last updated on 25 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.