Installations
npm install gulp-html-minifier-terser
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
^12.20.0 || ^14.13.1 || >=16.0.0
Node Version
19.2.0
NPM Version
9.1.3
Releases
Contributors
Unable to fetch Contributors
Languages
HTML (72.27%)
JavaScript (27.73%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
pioug
Download Statistics
Total Downloads
408,067
Last Day
20
Last Week
20
Last Month
7,624
Last Year
89,347
GitHub Statistics
18 Stars
114 Commits
1 Forks
3 Watching
2 Branches
2 Contributors
Bundle Size
919.26 kB
Minified
267.31 kB
Minified + Gzipped
Package Meta Information
Latest Version
7.1.0
Package Id
gulp-html-minifier-terser@7.1.0
Unpacked Size
7.47 kB
Size
3.00 kB
File Count
4
NPM Version
9.1.3
Node Version
19.2.0
Total Downloads
Cumulative downloads
Total Downloads
408,067
Last day
0%
20
Compared to previous day
Last week
-98.9%
20
Compared to previous week
Last month
-12.7%
7,624
Compared to previous month
Last year
84.4%
89,347
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
3
Dev Dependencies
4
gulp-html-minifier-terser
![Run tests](https://github.com/pioug/gulp-html-minifier-terser/workflows/Run%20tests/badge.svg)
gulp plugin to minify HTML.
Install
Install with npm:
1$ npm install --save gulp-html-minifier-terser
Heads up!
Please do not report issues related to HTML parsing and output on this repository. Report those issues to the html-minifier-terser issue tracker.
Usage
See the html-minifer-terser docs for all available options.
1const gulp = require('gulp'); 2const htmlmin = require('gulp-html-minifier-terser'); 3 4gulp.task('minify', () => { 5 return gulp.src('src/*.html') 6 .pipe(htmlmin({ collapseWhitespace: true })) 7 .pipe(gulp.dest('dist')); 8});
About
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Running Tests
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
1$ npm install && npm test
Building docs
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
1$ npm install -g verbose/verb#dev verb-generate-readme && verb
Contributors
Commits | Contributor |
---|---|
41 | shinnn |
20 | jonschlinkert |
11 | doowb |
7 | stevelacy |
2 | TheDancingCode |
1 | cwonrails |
1 | igoradamenko |
1 | oblador |
1 | jdalton |
1 | JoseChirivella14 |
1 | nschloe |
1 | tomByrer |
Author
Jon Schlinkert
Shinnosuke Watanabe
License
Copyright © 2018, Shinnosuke Watanabe. Released under the MIT License.
This file was generated by verb-generate-readme, v0.6.0, on September 08, 2018.
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 existing vulnerabilities detected
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/pioug/gulp-html-minifier-terser/push.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/pioug/gulp-html-minifier-terser/push.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/push.yml:15
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/push.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 2 are checked with a SAST tool
Score
3.4
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More