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

Breaks on google verification files #41

Open
pesochek opened this issue Mar 23, 2018 · 0 comments
Open

Breaks on google verification files #41

pesochek opened this issue Mar 23, 2018 · 0 comments

Comments

@pesochek
Copy link

pesochek commented Mar 23, 2018

'use strict';

const gulp = require('gulp');
const inline = require('gulp-inline-source');

gulp.task('inline', () => {
    return gulp.src('dist/**/*.html')
        .pipe(inline({
            compress: false
        }))
        .pipe(gulp.dest('dist'));
});

Throws an error when finding file like google0b725740ac54caf0.html - it is used to confirm website ownership in Google Webmaster dashboard. Content is just one line, something like: google-site-verification: google0b725740ac54caf0.html
And here is the error itself:

[12:51:52] Starting 'inline'...

events.js:154
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open '/home/pesochek/docker-lm/google-site-verification: google0b725740ac54caf0.html'
at Error (native)

Can be fixed by defining gulp.src this way, but it doesn't seem to be correct, shouldn't such files be simply ignored by gulp-inline-source itself? ['dist/**/*.html', '!dist/**/{google,y_key_}*.html']

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

No branches or pull requests

1 participant