We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have the code
gulp.src(['*.js']) .pipe(gulpif(['*.js'], uglify())) .pipe(gulp.dest('dist'));
but no files will be uglified, if I change the code like this
gulp.src(['*.js']) .pipe(gulpif('*.js', uglify())) .pipe(gulp.dest('dist'));
it works , it seems gulpif does not support bracket syntax
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
A quick dirty workaround... I'm sure it can be expanded upon to meet other peoples needs for now...
.pipe($.if( function(filesSrc) { return ['myfile.php', 'templates/myotherfile.twig'] .indexOf(filesSrc.relative) >= 0; }, ... ))
No branches or pull requests
I have the code
but no files will be uglified, if I change the code like this
it works , it seems gulpif does not support bracket syntax
The text was updated successfully, but these errors were encountered: