Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shopware 6 administration build only plugin

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?

like image 315
newgennerd Avatar asked Jun 06 '26 09:06

newgennerd


2 Answers

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

like image 137
newgennerd Avatar answered Jun 07 '26 22:06

newgennerd


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.

like image 42
Alex Avatar answered Jun 07 '26 22:06

Alex