Search code examples
shopware

What is var/plugins.json and should it go into version control (Shopware 6.3.5.2)?


On a quite fresh setup I ran

bin/build-storefront.sh

Now var/plugins.json is on the list of changed files in git. Now I am wondering if I should commit this file, because it contains local absolute paths - which might be different on other systems:

Local Path in var/plugins.json

EDIT: The file seems to be recreated during build, when I deleted it. However it's in the production-template git repository which is strange.


Solution

  • var/plugins.json is auto generated by build-administration.sh and build-storefront.sh to set entry points and output files for Webpack for the installed plugins.

    This file should not be commited. If you commit, it will be replaced anyway. It will be ignored by git in the upcoming version of Shopware 6.4 (see the commit).