我可以在 Shopify 主题开发中删除特定应用程序引用(取消发布主题)吗?

发布于 2025-01-14 02:02:23 字数 312 浏览 1 评论 0原文

我正在尝试在我的 Shopify 主题中创建一项功能,该功能当前使用第 3 方应用程序集成。现在我正在使用液体代码和 javascript 代码实现相同的功能,但现在我想在没有应用程序的情况下进行测试,一旦在开发中进行了所有测试,如果一切正常,那么我想在实时应用程序上推送或部署。

因此,我只想删除开发主题中的第 3 方应用程序引用。该应用程序将使用脚本标签添加js。

我正在使用 Shopify CLI 开发主题功能。我还从控制台窗口阻止了该应用程序的 JS,但我需要在取消发布主题上永久阻止它,以便我可以将预览链接发送给每个人,以便在不同的计算机和不同的浏览器中测试相同的内容。

I am trying to make one feature in my Shopify theme that is currently integrated using 3rd party app. now I am achieving the same functionality using liquid code and javascript code but now I want to test without the app and once all tested on the development and if all working well then an then I want to push or deploy on a live one.

so for that, I want to remove that 3rd party app reference in the development theme only. the app will add js using a script tag.

I am using Shopify CLI to develop the theme feature. also I have blocked the JS of that app from the console window but I need to block it permanently on an unpublish theme so I can send the preview link to everyone to test the same things on a different machine and in a different browser.

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

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

发布评论

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