-
Notifications
You must be signed in to change notification settings - Fork 12.3k
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
Gulp build runSequence doesn't finish (Windows Powershell) #2013
Comments
I'm not seeing any issues with the build locally. Travis is cool Can you give me some more details about your setup? |
nodejs version: 8.9.3 I'm doing the following:
At this point I receive the following console output: Obviously the task "copy:index.html" did not finish. I am able to fix this by changing the task definition to: gulp.task('copy:index.html', (done) => {
sri.hash('node_modules/jquery/dist/jquery.min.js', (err, hash) => {
if (err) throw err
let version = pkg.devDependencies.jquery;
let modernizrVersion = pkg.devDependencies.modernizr;
gulp.src(`${dirs.src}/index.html`)
.pipe(plugins().replace(/{{JQUERY_VERSION}}/g, version))
.pipe(plugins().replace(/{{MODERNIZR_VERSION}}/g, modernizrVersion))
.pipe(plugins().replace(/{{JQUERY_SRI_HASH}}/g, hash))
.pipe(gulp.dest(dirs.dist));
});
done();
}); Please notice that the location of the call of the callback function has changed in this snippet. I don't know why it seems to work on Travis and not on my local machine. Please tell me if you need further information. :-) |
This sounds like it may be related to: #1997 (#1997). |
Ah, I continue to look at these things in Git bash and never see the failures. |
closed via #2031 |
I'm submitting a ...
The runSequence of the task "build" in the gulpfile.babel.js does not finish properly after running "gulp build". For this reason, the task "modernizr" is not being executed (see comments here). This is caused by the task "copy:index.html", the callback function seems not to be called in time and therefore this task is never finished, preventing other tasks (like "modernizr") from being executed.
The text was updated successfully, but these errors were encountered: