Skip to content

Garbled manifest file #115

@austerus

Description

@austerus

Hello,

I am trying to use gulp-rev to have a cache busting system alongside a Symfony2 application, but when I try to use it my gulp file, it always results in some very random contents of the manifest file.

How it looks like in gulp:

function addCss(paths, output) {
    gulp.src(paths)
        .pipe(plugins.buffer())
        .pipe(plugins.rename(output))
        .pipe(plugins.rev())
        .pipe(gulp.dest(config.webFolder))
        .pipe(plugins.rev.manifest('dist/rev-manifest.json', {base: process.cwd()+'/dist', merge: true}))
        .pipe(gulp.dest('dist'));
}

Task where this is called:

gulp.task('css-all', function() {
    addCss('CoreBundle/Resources/css/inspinia/animate.css', 'css/inspinia/animate.css');
    addCss('CoreBundle/Resources/css/bootstrap.css', 'css/bootstrap.css');
    addCss('CoreBundle/Resources/css/deploy.css', 'css/deploy.css');
})

Resulting manifest file:

{
  "css/core/bootstrap.css": "css/core/bootstrap-dc6f4d3c4a.css"
}ploy.css": "css/core/deploy-dc6f4d3c4a.css"
}8dd.css"
}

The manifest contents changes every time the task runs, sometimes it results in one correct file but most of the times it has this partial content.

This happens regardless whether I use buffer or not.

Is there something I'm doing wrong or is there an issue?

Thanks & regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions