【npm学习】webpack异常

一、配置热更新时 遇见 context.compiler.hooks.invalid.tap('WebpackDevMiddleware', invalid);

处理方法:

1、卸载webpack-dev-middleware ,执行npm uninstall webpack-dev-middleware,使用dev-server自带的webpack-dev-middleware

2、重新install dev-server, 执行 npm install webpack-dev-server@2.10.0 --save-dev

posted @ 2022-01-22 19:59  gtea  阅读(215)  评论(0编辑  收藏  举报