netlify-plugin-minify-html
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -25,3 +25,6 @@ const comp = require('@node-minify/core'); | ||
replaceInPlace: true, | ||
options: inputs.minifierOptions | ||
options: { | ||
collapseWhitespace: false, | ||
...inputs.minifierOptions | ||
} | ||
}); | ||
@@ -28,0 +31,0 @@ |
{ | ||
"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. |
5015
28
66