Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⏪ revert faq.md #566

Merged
merged 1 commit into from
Jan 24, 2024
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
16 changes: 16 additions & 0 deletions faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,22 @@ It goes without saying that running the code generation is a pre-requisite at th
flutter pub run build_runner build
```

##### Changing the default extension of the generated files

If you want to change the default extension of the generated files from `.chopper.dart` to
something else, you can do so by adding the following to your `build.yaml` file:

```yaml
targets:
$default:
builders:
chopper_generator:
options:
# This assumes you want the files to end with `.chopper.g.dart`
# instead of the default `.chopper.dart`.
build_extensions: { ".dart": [ ".chopper.g.dart" ] }
```

#### Configure a WorkerPool and run the example

```dart
Expand Down
Loading