cozy / create-cozy-app

A CLI to bootstrap a "zero-configuration" application for the Cozy V3 platform
https://docs.cozy.io/en/tutorials/app/
MIT License
16 stars 15 forks source link

fix: Copy cozy-bar v7 assets only if should add public config #1498

Closed cballevre closed 1 year ago

cballevre commented 1 year ago

I made a mistake in a previous PR to extract cozy-bar v7 config. If you add version 7, this creates an unwanted public entry point that copies the bar source file to the public folder. This causes the build folder to grow without ever being used 🙁

This PR aims to correct this problem by only copying assts when the application needs to have the public configuration from which the config originally came (cf: old code)