build method
Implementation
@override
Component build(BuildContext context) {
return Gateway(children: [
ContentDelivery("${getBuildDir()}/${component.developmentDir}/",
useWatch: false,
cacheFiles: false,
useLastModified: true, beforeLoad: () {
if (component.watchChanges) {
return exitCode.future;
}
return dirsCreated.future;
}),
Route("packages",
child: ContentDelivery("${getBuildDir()}/packages/",
useWatch: false, cacheFiles: false, useLastModified: true,
// additional: {
// "packages/build_web_compilers/src/dev_compiler_stack_trace/stack_trace_mapper.dart.js.deps":
// utf8.encode(_deps) as Uint8List,
// "packages/build_web_compilers/src/dev_compiler_stack_trace/stack_trace_mapper.dart.js.map":
// utf8.encode(_map) as Uint8List
// },
beforeLoad: () {
if (!component.watchChanges) {
return exitCode.future;
}
return dirsCreated.future;
}),
handleUnknownAsRoot: true)
]);
}