Skip to content

updating gulp-filter to 4.0.0 causes map and rev failure #1094

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

Open
Endellur opened this issue Apr 26, 2016 · 6 comments
Open

updating gulp-filter to 4.0.0 causes map and rev failure #1094

Endellur opened this issue Apr 26, 2016 · 6 comments

Comments

@Endellur
Copy link

Not really an issue with the current version, but when I try to update all the dependencies for npm and bower I am able to move everything to current except gulp-filter. When I upgrade that from 3.0.1 to 4.0.0, rev and map stop working. I found this issue that might be related:

sindresorhus/gulp-filter#62

I am new to gulp and wasn't able to find the issue quickly so I thought I would enter a case and let those who are more skilled with gulp take a look. Thanks.

@piu130
Copy link
Contributor

piu130 commented Apr 28, 2016

For me it works. Which task is the one that fails?
3.0.1 -> 4.0.0 means major release corresponding to SemVer so there should be breaking changes.
Can you post some errors?

@Endellur
Copy link
Author

No tasks are failing, but when the build finishes the files have not been revisioned, there are no maps and the files are not minified. If I change back to 3.0.1 it works fine.

@mzellho
Copy link

mzellho commented May 4, 2016

@mykbaker here's how I got it working with 4.0.0

in build.js, update the $.filter paths like this:

var htmlFilter = $.filter(path.join(conf.paths.tmp, '/serve/*.html'), {restore: true});
var jsFilter = $.filter(path.join(conf.paths.tmp, '/serve/**/*.js'), {restore: true});
var cssFilter = $.filter(path.join(conf.paths.tmp, '/serve/**/*.css'), {restore: true});

HTH,
Max

@Endellur
Copy link
Author

Endellur commented May 4, 2016

@mzellhofer that worked great, thanks.

@Swiip
Copy link
Owner

Swiip commented May 9, 2016

That's nice, could one of you make a PR with that?

@mzellho
Copy link

mzellho commented May 9, 2016

I would love to, but I am on windows at the moment and somehow I cannot get your tests running. I should be able to switch to linux in the evening and will try again. I anyways pushed the changes to here

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

4 participants