addFlagSourceMaps method

void addFlagSourceMaps({
  1. bool defaultsTo = false,
})

Adds a source maps flag for debugging.

Generate a sourcemap file. These can be used by browsers to view and debug the original source code of a compiled and minified Dart application.

Defaults to false.

Example:

argParser.addFlagSourceMaps(defaultsTo: true);

Implementation

void addFlagSourceMaps({bool defaultsTo = false}) {
  addFlag(
    'source-maps',
    help:
        'Generate a sourcemap file. These can be used by browsers to view and debug the original source code of a compiled and minified Dart application.',
    defaultsTo: defaultsTo,
  );
}