I want to speed up the build time that build_runner takes, and I also want to prevent a re-build when running build watch when I am editing files that don't have any files to generate.
I know that this needs to be edited in the build.yaml file, but I can't get anything to work.
this is my build file
targets:
$default:
builders:
auto_route_generator:
generate_for:
include: [".route.dart"]
freezed:
generate_for:
include: [".model.dart"]
json_serializable:
generate_for:
include: [".model.dart"]
options:
explicit_to_json: true
include_if_null: false
Even trying to add enabled: false, which makes me believe that it would disable the build for that dependency, does nothing and the files continue to be generated.
Maybe I am just misunderstanding how the build file is supposed to be used...?