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

transformPath is never called #185

Open
pesochek opened this issue Mar 16, 2018 · 1 comment
Open

transformPath is never called #185

pesochek opened this issue Mar 16, 2018 · 1 comment

Comments

@pesochek
Copy link

Consider running following task. Manifest file is generated, but no paths are changed and nothing is shown in console.

'use strict';

const gulp          = require('gulp');
const revAll        = require('gulp-rev-all');

const dirAssets = 'dist/static pages/dist';

gulp.task('revision:assets', () => {
    return gulp.src(`${dirAssets}/**/*.{css,js}`)
        .pipe(revAll.revision({
            transformPath: (rev, source, path) => {
                console.log('transformPath()', rev, source, path);
                return rev.replace(/(css|js)\//, '/dist/$1/');
            }
        }))
        .pipe(gulp.dest(dirAssets))
        .pipe(revAll.manifestFile())
        .pipe(gulp.dest(dirAssets));
});

I'm locked to these versions of node/npm if it matters:

$ node -v
v5.12.0
$ npm -v
3.8.6
@Eduardo-Julio
Copy link

Can confirm, its never being called

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

2 participants