prerenderRoutes static method

Future<void> prerenderRoutes(
  1. List<String> routes,
  2. String baseUrl,
  3. String outputDir
)

Implementation

static Future<void> prerenderRoutes(
    List<String> routes, String baseUrl, String outputDir) async {
  final process =
      await Process.start('dart', ['tool/prerender.dart', ...routes]);
  await process.exitCode;
}