22 lines
531 B
JavaScript
22 lines
531 B
JavaScript
const gulp = require('gulp');
|
|
const paths = require('./helpers/paths.js');
|
|
const stripbom = require('gulp-stripbom');
|
|
|
|
function stripBom(dest) {
|
|
gulp.src([paths.src.scripts, paths.src.exclude.libs])
|
|
.pipe(stripbom({ showLog: false }))
|
|
.pipe(gulp.dest(dest));
|
|
|
|
gulp.src(paths.src.less)
|
|
.pipe(stripbom({ showLog: false }))
|
|
.pipe(gulp.dest(dest));
|
|
|
|
gulp.src(paths.src.templates)
|
|
.pipe(stripbom({ showLog: false }))
|
|
.pipe(gulp.dest(dest));
|
|
}
|
|
|
|
gulp.task('stripBom', () => {
|
|
stripBom(paths.src.root);
|
|
});
|