Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulp.src UTF-8 without BOM #1557

Closed
tolgaonbay opened this issue Mar 9, 2016 · 1 comment
Closed

gulp.src UTF-8 without BOM #1557

tolgaonbay opened this issue Mar 9, 2016 · 1 comment
Labels

Comments

@tolgaonbay
Copy link

Hi,

gulp.src removes BOM character from UTF-8 encoded files on MS Windows 7/Server 2012. I tried running the same task on cygwin and it worked. Is there any way to bypass this problem on Windows machines?

gulp.task('move', function() {
    return gulp.src(srcFolder + '/**/*')
            .pipe(gulp.dest(destFolder));
});
gulp --version
[10:03:33] CLI version 3.9.1
[10:03:33] Local version 3.9.1
node --version
v4.1.2
@phated
Copy link
Member

phated commented Mar 9, 2016

Unfortunately, this isn't able to be disabled in gulp 3.x. Please update to gulp 4 (npm install gulpjs/gulp#4.0) or use vinyl-fs ^2.0 directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants