New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

netlify-plugin-minify-html

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-plugin-minify-html - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

5

index.js

@@ -25,3 +25,6 @@ const comp = require('@node-minify/core');

replaceInPlace: true,
options: inputs.minifierOptions
options: {
collapseWhitespace: false,
...inputs.minifierOptions
}
});

@@ -28,0 +31,0 @@

2

package.json
{
"name": "netlify-plugin-minify-html",
"version": "0.3.0",
"version": "0.3.1",
"description": "A plugin to add HTML minification as a post-processing optimisation in Netlify",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,11 +11,16 @@ # Netlify Plugin - Minify HTML

To include this plugin in your site deployment:
To include this plugin in your site deployment, use the Netlify UI or file-based installation:
### UI installation
### 1. Add the plugin as a dependency
You can install this plugin in the Netlify UI from this [direct in-app installation link](https://app.netlify.com/plugins/netlify-plugin-minify-html/install) or from the [Plugins directory](https://app.netlify.com/plugins).
### File-based installation
#### 1. Add the plugin as a dependency
```bash
# Add the plugin as a dependency of your build
npm i --s netlify-plugin-minify-html
npm i -D netlify-plugin-minify-html

@@ -25,3 +30,3 @@ ```

### 2. Add the plugin and its options to your netlify.toml
#### 2. Add the plugin and its options to your netlify.toml

@@ -28,0 +33,0 @@ You can choose which [deploy contexts](https://docs.netlify.com/site-deploys/overview/?utm_source=github&utm_medium=plugin-htmlminfier-pnh&utm_campaign=devex#deploy-contexts) will include the HTML minification with the `targets` option.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc