bundleFiles method

  1. @override
void bundleFiles(
  1. List<String> files,
  2. String dependencySrc,
  3. StringBuffer buff
)
override

Merges and writes JavaScript files into a single bundle.js file.

This method first adds a Warden ASCII logo and a header, then appends the contents of each third-party file listed in dependencies.files. If a main file is set, it’s appended last. After bundling, the resulting JS file is saved to the output directory.

A terminal success message is printed. Missing files are logged as warnings.

Implementation

@override
void bundleFiles(
    List<String> files, String dependencySrc, StringBuffer buff) {
  // Bundle all dependency files
  _bundleFiles(buff, files, dependencySrc);
}