fd-gulp-convert-encoding
v0.0.1
Published
convert file to assigned charset
Downloads
7
Maintainers
Readme
基于gulp的将文件转换成指定编码的插件
用法
convertEncoding(encoding)
例子
var gulp = require('gulp');
var convertEncoding = require('fd-gulp-convert-encoding');
gulp.task('convertEncoding', function() {
return gulp.src('./source/gbk.js')
.pipe(convertEncoding('utf-8'))
.pipe(gulp.dest('./dest/'));
});
参数
encoding string(必须)
你希望将文件转换成的编码