Skip to content

bobwallis/gulp-hypher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-hypher

Preprocess HTML with Hypher

Issues with the output should be reported on the Hypher issue tracker.

Install

$ npm install --save-dev gulp-hypher
$ npm install --save-dev hyphenation.en-us

Replacing en-us with the relevant hyphenation pattern for your language.

Usage

var gulp = require('gulp');
var hypher = require('gulp-hypher');
var hypher_en_us = require('hyphenation.en-us');

gulp.task('default', function () {
	return gulp.src('index.html')
		.pipe(hypher(hypher_en_us))
		.pipe(gulp.dest('dist'));
});

This will add soft hyphens to all text nodes in the HTML passed.

About

Preprocess HTML with Gulp and Hypher.

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors