Skip to content

Ability to set custom output directory for flutter build commands for web #71130

@mymikemiller

Description

@mymikemiller

Use case

As described in this issue, it would be nice to be able to specify the output directory for flutter builds. For example, when building a flutter-for-web app with flutter build web, my output always ends up in the /build/web folder. I'd like to be able to specify where the built files end up, similar to what I can do for individual dart files with Dart2js's --out flag.

Proposal

Add a --out flag to the the flutter build command to allow specifying the build directory. For example, flutter build web --out=my_custom_build/web

Metadata

Metadata

Assignees

Labels

P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityplatform-webWeb applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

Status

Future tool team projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions