Skip to content

Comments

Fix for webpack 5 watch mode deprecation: DEP_WEBPACK_WATCH_WITHOUT_CALLBACK#232

Merged
shama merged 1 commit intomasterfrom
webpack-watch
Dec 6, 2020
Merged

Fix for webpack 5 watch mode deprecation: DEP_WEBPACK_WATCH_WITHOUT_CALLBACK#232
shama merged 1 commit intomasterfrom
webpack-watch

Conversation

@shama
Copy link
Owner

@shama shama commented Dec 6, 2020

Fixes GH-230
Alternative to GH-231

@cowwoc how about this solution? That way those who still want to use the webpack watch option can.

If you're calling webpack.watch() (which this lib does with watch: true), then you don't need to additionally supply watch: true to the webpack config: webpack/webpack-cli#1918 (comment)

@shama shama self-assigned this Dec 6, 2020
@cowwoc
Copy link

cowwoc commented Dec 6, 2020

Yes, go for it. This PR should work as well.

@shama shama merged commit bbe9d9e into master Dec 6, 2020
@shama shama deleted the webpack-watch branch December 6, 2020 23:59
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.

Webpack 5 warns about a deprecation in watch mode

2 participants