Skip to content

Commit

Permalink
Add extensions as bundle section back in (#1690)
Browse files Browse the repository at this point in the history
Co-authored-by: Su <[email protected]>
  • Loading branch information
JoshuaBehrens and sushmangupta authored Feb 13, 2025
1 parent ba85d12 commit f919191
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions products/cli/extension-commands/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@ build:
name: Foo
```

## Extension as bundle

If your extension is not a plugin but itself a bundle, make sure your composer type is `shopware-bundle` and that you have set a `shopware-bundle-name` in the `extra` part of the composer definition like this:

```json
{
"name": "my-vendor/my-bundle",
"type": "shopware-bundle",
"extra": {
"shopware-bundle-name": "MyBundle"
}
}
```

Now you can use `shopware-cli extension build <path>` to build the assets and distribute them together with your bundle.
Also `shopware-cli project ci` detects know automatically this bundle and builds the assets for it.

## Using esbuild for JavaScript Bundling

::: warning
Expand Down

0 comments on commit f919191

Please sign in to comment.