Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,27 @@ targets:
compiler: dart2js
```

## How can I include additional sources in my build?

By default, the `build_runner` package only includes some specifically
whitelisted directories, derived from the [package layout conventions](
https://www.dartlang.org/tools/pub/package-layout).

If you have some additional files which you would like to be included as part of
the build, you will need a custom `build.yaml` file. You will want to modify the
`sources` field on the `$default` target:

```yaml
targets:
$default:
sources:
- my_custom_sources/**
- lib/**
- web/**
# Note that it is important to include these in the default target.
- pubspec.*
```

## Why do Builders need unique outputs?

`build_runner` relies on determining a static build graph before starting a
Expand Down