【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
作者:gtea
博客地址:https://www.cnblogs.com/gtea