end method

void end(
  1. Stopwatch stopwatch
)

Implementation

void end(Stopwatch stopwatch) {
  // Bundle main JS file
  if (dependencyMainFile != "") {
    _bundleMainFile(buffer, dependencyMainFile);
  }
  buffer.writeln(
      "// ----------------------  WARDEN << END -------------------- //");

  bundleFile.writeAsStringSync(buffer.toString());
  stopwatch.stop();
  final elapsed = stopwatch.elapsed;
  print("${AnsiStyles.cyan("✔ bundled JS files into ")}"
      "${AnsiStyles.greenBright.bold("[$bundlePath]${AnsiStyles.cyan(" took ")}"
          "${AnsiStyles.white.bold("${elapsed.inSeconds}.${elapsed.inMilliseconds % 1000}s")}")}");
}