Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nsisodiya/gatsby-plugin-html-minifier
A Gatsby plugin to easily minify HTML file
https://github.com/nsisodiya/gatsby-plugin-html-minifier
Last synced: about 1 month ago
JSON representation
A Gatsby plugin to easily minify HTML file
- Host: GitHub
- URL: https://github.com/nsisodiya/gatsby-plugin-html-minifier
- Owner: nsisodiya
- Created: 2019-05-06T10:45:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-06T14:03:19.000Z (over 5 years ago)
- Last Synced: 2024-11-17T10:12:35.946Z (about 2 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gatsby-plugin-html-minifier
A Gatsby plugin to easily minify HTML file.
## Installation
With npm:
```bash
npm install --save gatsby-plugin-html-minifier html-minifier
```Or with Yarn:
```bash
yarn add gatsby-plugin-html-minifier html-minifier
```## Usage
In your `gatsby-config.js` file, load in the plugin along with an object of any `` attributes you want to add. Example:
```javascript
module.exports = {
plugins: [
{
resolve: 'gatsby-plugin-html-minifier',
options: {
caseSensitive: false,
collapseBooleanAttributes: false,
useShortDoctype: false
}
}
]
};
```## Options
See all options at https://github.com/kangax/html-minifier