0.1.0 • Published 7 years ago
gulp-rmindentation v0.1.0
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
Usage
var rmindentation = require('gulp-rmindentation');
gulp.task('scripts', function() {
return gulp.src('./src/*.html')
.pipe(rmindentation())
.pipe(gulp.dest('./dist/'));
});