Skip to content

Commit

Permalink
docs: explain how an App is consuming cozy-bar in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
trollepierre committed Jul 22, 2022
1 parent 66e2557 commit 5413f47
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,15 @@ In order to add new features to the cozy-bar v7 while working on another cozy-ap

`$ yarn start` // in the cozy-app

### How does it work?

When Drive is building, the cozy-bar assets are defined dynamically if __STACK_ASSETS__ = true
[inside the browser file](https://github.com/cozy/cozy-drive/blob/master/src/drive/targets/browser/index.ejs#L27-L32)

In [dev mode on webpack, __STACK_ASSETS__ = false](https://github.com/cozy/create-cozy-app/blob/532dc9848526d48b749a8fd4fecdce1c9a6880c2/packages/cozy-scripts/config/webpack.environment.dev.js#L27)

[In that case, the cozy-bar is injected](https://github.com/cozy/create-cozy-app/blob/532dc9848526d48b749a8fd4fecdce1c9a6880c2/packages/cozy-scripts/config/webpack.environment.dev.js#L35-L57)

Contribute
----------

Expand Down

0 comments on commit 5413f47

Please sign in to comment.