Skip to content

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

@redplane

Description

@redplane

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions