webpack版本导致的配置不一样,老师用的是webpack3+的
https://img1.sycdn.imooc.com//5b6412320001ccab05000363.jpg
https://img1.sycdn.imooc.com//5b6412320001ccab05000363.jpg
2018-08-03
遇到Tapable.plugin is deprecated. Use new API on `.hooks` instead可以参考https://blog.csdn.net/u011215669/article/details/81269386轻松解决