File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ import '../validation.dart';
11
11
12
12
/// Builds assets in a `hook/build.dart` .
13
13
///
14
- /// Meant to be used in build hooks (`hook/build.dart` ).
14
+ /// If a build hook is defined (`hook/build.dart` ) then `build` must be called
15
+ /// by that hook, to write the [BuildInput.outputFile] , even if the [builder]
16
+ /// function has no work to do.
15
17
///
16
18
/// Can build native assets which are not already available, or expose existing
17
19
/// files. Each individual asset is assigned a unique asset ID.
@@ -134,7 +136,9 @@ Future<void> build(
134
136
135
137
/// Links assets in a `hook/link.dart` .
136
138
///
137
- /// Meant to be used in link hooks (`hook/link.dart` ).
139
+ /// If a link hook is defined (`hook/link.dart` ) then `link` must be called
140
+ /// by that hook, to write the [BuildInput.outputFile] , even if the [linker]
141
+ /// function has no work to do.
138
142
///
139
143
/// Can link native assets which are not already available, or expose existing
140
144
/// files. Each individual asset is assigned a unique asset ID.
You can’t perform that action at this time.
0 commit comments