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

TypeError: listener must be a function #139

Open
G33kLabs opened this issue Sep 2, 2015 · 0 comments
Open

TypeError: listener must be a function #139

G33kLabs opened this issue Sep 2, 2015 · 0 comments

Comments

@G33kLabs
Copy link

G33kLabs commented Sep 2, 2015

Hi !

I've just updated modules with npm update and have currently this issue after the upgrade :

[12:55:30] 'build-usemin' errored after 51 ms
[12:55:30] TypeError: listener must be a function
    at TypeError (native)
    at Stream.addListener (events.js:142:11)

gulp : 3.9.0
gulp-usemin : 0.3.14

Task :

gulp.task('build-html', function() {
    return gulp.src(paths.html)
        .pipe(plumber())
        .pipe($.if($.isBuild, $.usemin({
            js: [$.uglify({
                mangle: true,
                compress: true
            }), $.rev()]
        })))
        .pipe(
            $.if(!$.isBuild,
                $.usemin()
            )
        )
        .pipe(gulp.dest(paths.output));
});

Hoping this could help !

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