2

vue 项目实践

 3 weeks ago
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 项目实践

作者: 张志强

, 2024-04-03

, 共 197 字 , 共阅读 16 次

1、检查依赖项

写项目的时候遇到有需要就往 package.json里面添加新的包,即使后面没用也忘了删除,结果越积累越多。depcheck是检查依赖项的工具,会提示哪些包没有实际用到。安装:

sudo -E npm install depcheck

然后直接项目根目录下执行即可。会检查依赖项( dependency )以及开发依赖项( dev-dependency ):

depcheck

Q. E. D.

avatar-0.jpg

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK