add benchmarks to track web size (#33892)

This commit is contained in:
Jonah Williams
2019-06-05 12:40:21 -07:00
committed by GitHub
parent a6e77377ff
commit 50ea6f32d3
5 changed files with 89 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ class WebCompiler {
target,
'-o',
'$outputPath',
'-O4',
'--libraries-spec=$librariesPath',
];
if (minify) {

View File

@@ -38,6 +38,7 @@ void main() {
'lib/main.dart',
'-o',
'build/web/main.dart.js',
'-O4',
'--libraries-spec=bin/cache/flutter_web_sdk/libraries.json',
'-m',
])).called(1);