gulp-rmindentation

0.1.0 • Public • Published

Description

remove indent and CRLF for html strings.

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev gulp-rmindentation

Description

Htmlのインデントや改行で、不要なスペースができるのを解消します。 行頭の半角スペース、全角スペース、タブ文字、および行末の改行を削除します。

<div>
  <span> </span>
  <span> </span>
</div>

<div><span> </span><span> </span></div>

Information

Packagegulp-rmindent
Description remove indent and CRLF for html strings

Usage

var rmindentation = require('gulp-rmindentation');
 
gulp.task('scripts', function() {
  return gulp.src('./src/*.html')
    .pipe(rmindentation())
    .pipe(gulp.dest('./dist/'));
});

Package Sidebar

Install

npm i gulp-rmindentation

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • nabepon