Skip to content

Allow of optional declaring output location of 3rdpartylicenses.txt #31864

@HerrDerb

Description

@HerrDerb

Command

build

Description

When generating the 3rdpartylicenses.txt during build, it will be placed in the www directory.
This means, it will not be servable. For it to be servable, it would need to be in the www\browser directory.

I understand that this is intentional as of #28852. One could simply make a post build hook and copy it.
We use the app for an ionic/capacitor project. This does make the post build hook unusable, as ionic uses its own build tasks before copying the assets to the android app. This results that it is not really possible to copy the 3rdpartylicenses.txt. Or it would be very hacky.

Describe the solution you'd like

By providing an option to define the output dir of the 3rdpartylicenses.txt file, it would make life much easier and gives control to the dev.

The default value obviously would be /www

Describe alternatives you've considered

package.json

...
"capacitor:copy:before": "copyfiles --flat www/3rdpartylicenses.txt www/browser",
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions