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

running fonts function 2 times can fail, add a wait will help #123

Open
stefanaerts opened this issue May 27, 2016 · 0 comments
Open

running fonts function 2 times can fail, add a wait will help #123

stefanaerts opened this issue May 27, 2016 · 0 comments

Comments

@stefanaerts
Copy link

stefanaerts commented May 27, 2016

When you use clean-fonts in the fonts task and you run the fonts task twice,it will fail 1 time.

image

If you run them separate , so first gulp task clean-fonts and then fonts,it works always.

It seems there is some problem with the creation of the 4.4.0 subdirectory data in the pipeline.

When you put a wait before the copy it works for me, you can put a wait of 50 instead of 1500,but with 1500 you see the directories dissapear and re-appear in visual studio code.

I think the bug is that the copy starts for the fonts in the directory and subdirectories while the deletion and creation of the subdirectories is still not done yet.

gulp.task('fonts', ['clean-fonts'], function () {

log('Copying fonts');

return gulp

.src(config.root + config.fonts)

.pipe($.wait(1500))

.pipe(gulp.dest(config.build + 'fonts'));

});

DeleteShare

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