Shopware 6 管理构建专用插件

发布于 2025-01-09 22:15:18 字数 83 浏览 3 评论 0原文

是否有命令仅构建指定插件的管理部分?现在我正在构建整个管理系统来为插件构建公共资源,这当然需要更多时间。由于每个插件都有自己的资源,难道不应该这样做吗?

Is there a command to build only the administration part of a specified plugin? Right now I am building the whole administration to build the public resources for the plugin, which of course takes more time. Since every plugin has it's own resources, shouldn't it be possible to do this?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

心碎无痕… 2025-01-16 22:15:18

从 Shopware 6.4.8.0 开始,似乎可以通过添加环境变量 SHOPWARE_ADMIN_BUILD_ONLY_EXTENSIONS=1 来仅构建扩展(不是单个扩展,但至少只是扩展)

Since Shopware 6.4.8.0 it seems to be possible to only build the extensions (not a single one, but at least only extensions) by adding the environment variable SHOPWARE_ADMIN_BUILD_ONLY_EXTENSIONS=1

寄居者 2025-01-16 22:15:18

没有开箱即用的脚本可以选择性地仅构建一个模块。

该构建基于 vendor/shopware/administration/Resources/app/administration 中的一个 Webpack 配置,其中包含每个扩展的代码作为子模块。

如果您要求加快开发速度,您可能需要使用 bin/watch-administration.sh ,它应该仅在保存更改的文件时重建它们。

There are no out-of-the-box scripts to selectively build only one module.

The build is based on one single webpack config in vendor/shopware/administration/Resources/app/administration which includes each extension's code as as submodule.

If you are asking to speed up development, you might want to use bin/watch-administration.sh which should only rebuild changed files when you save them.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文