需要 @capacitor/angular 和 @capacitor/assets 吗?它们的作用是什么?

huangapple go评论59阅读模式
英文:

Do I need @capacitor/angular and @capacitor/assets and what do they do?

问题

我正在使用 Capacitor 构建一个应用程序,但注意到 @capacitor/angular@capacitor/assets 已经有一年多没有更新了。

在寻找答案时,我似乎找不到与它们相关的参考或它们的作用是什么。
它们是必需的吗?

英文:

I'm building an application with Capacitor but have noticed that @capacitor/angular and @capacitor/assets have not been updated in over a year.

When looking for answers I cannot seem to find reference to them or what they do.
Are they required?

答案1

得分: 2

@capacitor/assets 在3个月前进行了更新。
它是用于生成启动屏幕插件和应用程序图标的工具。所以如果你手动或者使用其他工具/软件生成了它们,就不需要它。

@capacitor/angular 是用于Angular的原理图,可以使将 Capacitor 添加到 Angular 应用程序变得比手动更容易。因此,如果你运行 ng add @capacitor/angular,它将安装所需的依赖项并初始化你的项目,而不是你手动安装依赖项并运行 npx cap init 命令来初始化项目。

英文:

@capacitor/assets was updated 3 months ago.
It's a tool for generating images for splash screen plugin and app icons. So you don't need it if you generate those manually or with other tooling/software.

@capacitor/angular are schematics for angular that allow to add Capacitor to an angular app in an easier way than manually. So if you run ng add @capacitor/angular it would install the required dependencies and init your project, instead of you installing the dependencies manually and running npx cap init command to init the project.

huangapple
  • 本文由 发表于 2023年2月13日 23:39:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/75438081.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定