2
vue 项目实践
source link: https://zhiqiang.org/it/vue3-project-practise.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
vue 项目实践
1、检查依赖项
写项目的时候遇到有需要就往 package.json
里面添加新的包,即使后面没用也忘了删除,结果越积累越多。depcheck
是检查依赖项的工具,会提示哪些包没有实际用到。安装:
sudo -E npm install depcheck
然后直接项目根目录下执行即可。会检查依赖项( dependency )以及开发依赖项( dev-dependency ):
depcheck
Q. E. D.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK