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

Cannot get on('end') with webpack watch mode enabled. #189

Open
redplane opened this issue May 21, 2018 · 5 comments
Open

Cannot get on('end') with webpack watch mode enabled. #189

redplane opened this issue May 21, 2018 · 5 comments

Comments

@redplane
Copy link

Hi,

I'm using webpack-stream version 4.0.3 with gulp.

This is my gulp task:

         gulp.src(szEntryFile)
                .pipe(webpackStream(oWebpackOption, webpack))
                .on('end', () => {
                    console.log('Finish');
                })
                .pipe(gulp.dest(paths.dist));

This is my webpack.config.js file:

{
   ...,
   watch: true,
        watchOptions: {
            poll: false
        }
}

When I ran the gulp task above, web pack ran successfully but there was no 'Finish' message.

Can anyone help me please ?

Thanks,

@linuxonrails
Copy link

Same problem :-(

@onelongblock
Copy link

Same

1 similar comment
@javipuche
Copy link

Same

@stoplion
Copy link

+1

@Backfighter
Copy link

Looking at the source code you can see that:
Webpack-stream acts as an endless stream if you set it into watch mode.
Files will be continuously piped out on every rebuild.
If you want to know when a rebuild finished you should use the callback as documented in the README.

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

6 participants