fmal / gulp-inline-source

Inline flagged js & css sources.
MIT License
212 stars 31 forks source link

illegal operation on a directory, read #51

Open MartijnHarmenzon opened 4 years ago

MartijnHarmenzon commented 4 years ago

When trying to use:

    .src([
      './dist/**/index.html'
    ])
    .pipe(inlinesource())
    .pipe(gulp.dest('./dist/'));

It fails.

    .src([
      './dist/analytics/index.html'
    ])
    .pipe(inlinesource())
    .pipe(gulp.dest('./dist/'));

Fails also.

The following works:

    .src([
      './dist/index.html'
    ])
    .pipe(inlinesource())
    .pipe(gulp.dest('./dist/'));

But I need to inline the code in the analytics folder also.

Error message:

Message: EISDIR: illegal operation on a directory, read Details: errno: -4068 syscall: read code: EISDIR domainEmitter: [object Object] domainThrown: false