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

Log a message when watchify finishes a build. #795

Closed
wants to merge 1 commit into from

Conversation

dangerbell
Copy link

There was some gulp output when the original 'watch' task completed, but there wasn't any output when watchify rebuilt changed files. I assumed it wasn't working properly because if you run watchify by itself on the command line it writes a message every time it builds.

I also added some comments to answer some questions I had about how gulp, watchify, browserify, and vinyl work together in this example.

There was some gulp output when the original 'watch' task completed, but there wasn't any output when watchify rebuilt changed files. I assumed it wasn't working properly because if you run watchify by itself on the command line it writes a message every time it builds.

I also added some comments to answer some questions I had about how gulp, watchify, browserify, and vinyl work together in this example.

function rebundle() {
return bundler.bundle()
// log errors if they happen
.on('error', gutil.log.bind(gutil, 'Browserify Error'))
.pipe(source('bundle.js'))
.pipe(gulp.dest('./dist'));
.pipe(source('bundle.js')) // Create a vinyl file instance for the output from bundler.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also sets the name of the bundled output. I believe you're going to be saving bundle.js to dist/.

@yocontra
Copy link
Member

Just rewrote this recipe

@yocontra yocontra closed this Dec 12, 2014
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

Successfully merging this pull request may close these issues.

None yet

3 participants