dependencies
中的dev_dependencies
和pubspec.yaml
有什么区别?看来当我运行pub get
时,并未下载dev_dependencies
。
最佳答案
dev_dependencies
是不可用于结果应用程序中的代码的依赖项,而仅可用于测试,示例,工具或将可执行的工具(例如用于代码生成的代码)添加到项目中。
发布到pub.dev时,项目中任何依赖项(dev_dependencies
或dependencies
)的dev_dependencies
始终会被忽略。
另请参阅https://www.dartlang.org/tools/pub/pubspec.html
关于dart - pub依赖和dev_dependencies之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32108457/