Reputation: 241
I have an app for shopware 6 which has a javascript file. After i upload it to my shopware6 site, install and activate it, it doesn't work unless i run the build-storefront.sh from console.
Is there a way to make the app work without running build-storefront.sh ?
I tested it with shopware 6.4.14.0
Upvotes: 2
Views: 570
Reputation: 3190
All assets like the javascript of your app need to be uploaded inside your app, so the app automatically works without the need to rebuild the storefront after installing your app.
Therefore to create a zip folder for publishing or for uploading you should always execute the build-storefront.sh
script, either locally or in a CI step. That command should build all the necessary assets and put them under the Resources/app/storefront/dist
folder inside your app.
Please ensure that that folder is included in the zip file you upload to your shop.
Upvotes: 4