| Index: sdk/lib/_internal/pub/lib/src/dart.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/dart.dart b/sdk/lib/_internal/pub/lib/src/dart.dart
|
| index 2537b5b9a00f00bdaf33edbb329463534705cc3a..28902cca82f804464f5686b89f72c66855c3e640 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/dart.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/dart.dart
|
| @@ -30,12 +30,17 @@ import 'utils.dart';
|
| /// If [inputProvider] and [diagnosticHandler] are omitted, uses a default
|
| /// [compiler.CompilerInputProvider] that loads directly from the filesystem.
|
| /// If either is provided, both must be.
|
| -Future<String> compile(String entrypoint, {String packageRoot,
|
| - bool toDart: false, compiler.CompilerInputProvider inputProvider,
|
| +Future<String> compile(String entrypoint, {
|
| + String packageRoot,
|
| + bool toDart: false,
|
| + bool minify: true,
|
| + compiler.CompilerInputProvider inputProvider,
|
| compiler.DiagnosticHandler diagnosticHandler}) {
|
| return new Future.sync(() {
|
| - var options = <String>['--categories=Client,Server', '--minify'];
|
| + var options = <String>['--categories=Client,Server'];
|
| if (toDart) options.add('--output-type=dart');
|
| + if (minify) options.add('--minify');
|
| +
|
| if (packageRoot == null) {
|
| packageRoot = path.join(path.dirname(entrypoint), 'packages');
|
| }
|
|
|