Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

devServer.before and devServer.after method does not exist #164

Closed
nashaofu opened this issue Apr 5, 2019 · 2 comments
Closed

devServer.before and devServer.after method does not exist #164

nashaofu opened this issue Apr 5, 2019 · 2 comments

Comments

@nashaofu
Copy link
Contributor

nashaofu commented Apr 5, 2019

devServer has no before and after methods. I made a mistake when I was using it. thanks!
https://webpack.js.org/configuration/dev-server/#devserverbefore

@eliperelman
Copy link
Member

When a method doesn't exist, you can manually set it via .set:

config.devServer.set('before', () => {});
config.devServer.set('after', () => {});

We would welcome a PR to update those methods.

@eliperelman
Copy link
Member

Fixed by #167.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants