在Angular 6中使用chrome扩展清单和pwa清单

问题描述 投票:0回答:1

是否可以将一个Angular应用程序用于PWA和chrome扩展?因为扩展和PWA的配置都需要一个独特且互斥的manifest.json,我们不能在一个Angular项目的根目录中放置两个清单文件。

这种情况应该是什么样的出路?

angular google-chrome-extension angular6 manifest progressive-web-apps
1个回答
0
投票

web app manifest不一定是manifest.json。事实上它可能是任何事情。 pwa.jsonmanifest.webmanifest也会起作用。然后,您需要更新站点HTML中的link标记以指向该文件。

<link rel="manifest" href="/manifest.webmanifest">
© www.soinside.com 2019 - 2024. All rights reserved.