Shopware 6 管理构建专用插件
是否有命令仅构建指定插件的管理部分?现在我正在构建整个管理系统来为插件构建公共资源,这当然需要更多时间。由于每个插件都有自己的资源,难道不应该这样做吗?
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从 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
没有开箱即用的脚本可以选择性地仅构建一个模块。
该构建基于
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.