forked from firka/flutter
[tools, web] Make sure to copy the dump-info file if dump-info is used (#165013)
Also fixed the wording of the dump-info build flag
This commit is contained in:
@@ -252,6 +252,12 @@ class Dart2JSTarget extends Dart2WebTarget {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (compilerConfig.dumpInfo) {
|
||||
if (file.basename == 'main.dart.js.info.json') {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ class BuildWebCommand extends BuildSubCommand {
|
||||
negatable: false,
|
||||
help:
|
||||
'Passes "--dump-info" to the Javascript compiler which generates '
|
||||
'information about the generated code is a .js.info.json file.',
|
||||
'information about the generated code in main.dart.js.info.json.',
|
||||
);
|
||||
argParser.addFlag(
|
||||
'no-frequency-based-minification',
|
||||
|
||||
Reference in New Issue
Block a user