如何在NX库中包括第三方依赖关系

发布于 2025-01-20 12:52:56 字数 112 浏览 1 评论 0原文

NX的新手,尚不确定何时有意义地将代码提取到库中... 使用第三方依赖性(假设角材料),然后在不使用Angular材料本身的应用中使用此库是可能的/是否有意义?如果是这样,我是否需要为此使用可构建或可发布的库?

New to Nx and not sure yet when it makes sense to extract code into libraries...
Is it possible/does it make sense to build an Nx library using a 3rd party dependency (let's say angular material) and then use this library in an app that doesn't use angular material itself? If so, do I need to use a buildable or publishable library for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文