webpack-bundle-analyzer
webpack-bundle-analyzer可以看到项目各模块的大小,可以按需优化。官方文档: https://www.npmjs.com/package/webpack-bundle-analyzer,中文简单介绍:https://segmentfault.com/a/1190000012220132
ip
可以直接生成通过本地IP地址访问的URL,获取IPconst ip = require('ip').address();
,并在webpack-dev配置中关闭host校验disableHostCheck: true
。