Revert "[flutter_tools] supports tree-shake-icons for web builds (#51808)" (#52045)

This reverts commit aed961993d.
This commit is contained in:
Jonah Williams
2020-03-05 13:02:22 -08:00
committed by GitHub
parent ee476a7bd1
commit c411f588c6
4 changed files with 148 additions and 195 deletions

View File

@@ -11,7 +11,6 @@ import '../base/logger.dart';
import '../build_info.dart';
import '../build_system/build_system.dart';
import '../build_system/targets/dart.dart';
import '../build_system/targets/icon_tree_shaker.dart';
import '../build_system/targets/web.dart';
import '../convert.dart';
import '../globals.dart' as globals;
@@ -53,7 +52,8 @@ Future<void> buildWeb(
kHasWebPlugins: hasWebPlugins.toString(),
kDartDefines: jsonEncode(dartDefines),
kCspMode: csp.toString(),
kIconTreeShakerFlag: buildInfo.treeShakeIcons.toString(),
// TODO(dnfield): Enable font subset. We need to get a kernel file to do
// that. https://github.com/flutter/flutter/issues/49730
},
));
if (!result.success) {