英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论