2014-08-29 00:40:18 +03:00
|
|
|
var gulp = require('gulp');
|
|
|
|
var paths = require('./paths.js');
|
2015-02-14 20:07:59 +02:00
|
|
|
var stripbom = require('gulp-stripbom');
|
2014-08-29 00:40:18 +03:00
|
|
|
|
|
|
|
var stripBom = function (dest) {
|
2015-01-30 04:10:16 +02:00
|
|
|
gulp.src([paths.src.scripts, paths.src.exclude.libs])
|
2015-02-14 20:07:59 +02:00
|
|
|
.pipe(stripbom({ showLog: false }))
|
2014-08-29 00:40:18 +03:00
|
|
|
.pipe(gulp.dest(dest));
|
|
|
|
|
2015-08-30 00:19:45 +02:00
|
|
|
gulp.src(paths.src.less)
|
|
|
|
.pipe(stripbom({ showLog: false }))
|
|
|
|
.pipe(gulp.dest(dest));
|
|
|
|
|
2014-08-29 00:40:18 +03:00
|
|
|
gulp.src(paths.src.templates)
|
2015-02-14 20:07:59 +02:00
|
|
|
.pipe(stripbom({ showLog: false }))
|
2014-08-29 00:40:18 +03:00
|
|
|
.pipe(gulp.dest(dest));
|
|
|
|
};
|
|
|
|
|
|
|
|
gulp.task('stripBom', function () {
|
|
|
|
stripBom(paths.src.root);
|
|
|
|
});
|