-
-
Notifications
You must be signed in to change notification settings - Fork 212
Closed
Description
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
Labels
No labels