Skip to content

Commit

Permalink
Rename gulp-htmlmin to gulp-html-minifier-terser
Browse files Browse the repository at this point in the history
  • Loading branch information
pioug committed Mar 22, 2020
1 parent 0591009 commit 511bac5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .verb.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ See the [html-minifer-terser docs](https://github.com/DanielRuf/html-minifier-te

```js
const gulp = require('gulp');
const htmlmin = require('gulp-htmlmin');
const htmlmin = require('gulp-html-minifier-terser');

gulp.task('minify', () => {
return gulp.src('src/*.html')
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# gulp-htmlmin [![NPM version](https://img.shields.io/npm/v/gulp-htmlmin.svg?style=flat)](https://www.npmjs.com/package/gulp-htmlmin) [![NPM monthly downloads](https://img.shields.io/npm/dm/gulp-htmlmin.svg?style=flat)](https://npmjs.org/package/gulp-htmlmin) [![NPM total downloads](https://img.shields.io/npm/dt/gulp-htmlmin.svg?style=flat)](https://npmjs.org/package/gulp-htmlmin) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/gulp-htmlmin.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/gulp-htmlmin)
# gulp-html-minifier-terser [![NPM version](https://img.shields.io/npm/v/gulp-html-minifier-terser.svg?style=flat)](https://www.npmjs.com/package/gulp-html-minifier-terser) [![NPM monthly downloads](https://img.shields.io/npm/dm/gulp-html-minifier-terser.svg?style=flat)](https://npmjs.org/package/gulp-html-minifier-terser) [![NPM total downloads](https://img.shields.io/npm/dt/gulp-html-minifier-terser.svg?style=flat)](https://npmjs.org/package/gulp-html-minifier-terser) ![Run tests](https://github.com/pioug/gulp-html-minifier-terser/workflows/Run%20tests/badge.svg)

> gulp plugin to minify HTML.
Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.

## Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm install --save gulp-htmlmin
$ npm install --save gulp-html-minifier-terser
```

## Heads up!
Expand All @@ -22,7 +20,7 @@ See the [html-minifer-terser docs](https://github.com/DanielRuf/html-minifier-te

```js
const gulp = require('gulp');
const htmlmin = require('gulp-htmlmin');
const htmlmin = require('gulp-html-minifier-terser');

gulp.task('minify', () => {
return gulp.src('src/*.html')
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = options => {
next(null, file);
} catch (err) {
let opts = Object.assign({}, options, { fileName: file.path });
let error = new PluginError('gulp-htmlmin', err, opts);
let error = new PluginError('gulp-html-minifier-terser', err, opts);
if (next !== cb) {
next(error);
return;
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "gulp-htmlmin",
"name": "gulp-html-minifier-terser",
"description": "gulp plugin to minify HTML.",
"version": "5.0.1",
"homepage": "https://github.com/jonschlinkert/gulp-htmlmin",
"homepage": "https://github.com/pioug/gulp-html-minifier-terser",
"authors": [
{
"name": "Jon Schlinkert",
Expand All @@ -29,9 +29,9 @@
"Tom Byrer (https://github.com/tomByrer)",
"(https://github.com/TheDancingCode)"
],
"repository": "jonschlinkert/gulp-htmlmin",
"repository": "pioug/gulp-html-minifier-terser",
"bugs": {
"url": "https://github.com/jonschlinkert/gulp-htmlmin/issues"
"url": "https://github.com/pioug/gulp-html-minifier-terser/issues"
},
"license": "MIT",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let errorFile = new File({
contents: Buffer.from(errorFileContents)
});

describe('gulp-htmlmin', () => {
describe('gulp-html-minifier-terser', () => {
describe('file.contents - buffer', () => {
it('should ignore empty file', cb => {
let stream = minify();
Expand Down

0 comments on commit 511bac5

Please sign in to comment.