Skip to content

Commit ac85e2c

Browse files
authored
[web] when building examples, delete the canvaskit bits from the output (#2586)
We use the hosted artifacts, so this just wastes storage
1 parent 04aea26 commit ac85e2c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

web/_tool/fix_base_tags.dart

+10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'dart:io';
2+
23
import 'package:path/path.dart' as p;
34

45
Future<void> main() async {
@@ -47,6 +48,15 @@ Future<void> fixBaseTags() async {
4748
);
4849
await index.writeAsString(newContents);
4950
}
51+
52+
// Since all of the web examples use the hosted canvaskit bits
53+
// There is no need to deploy these
54+
final canvasKitDirectory = Directory(
55+
p.join(builtSample.path, 'canvaskit'),
56+
);
57+
if (canvasKitDirectory.existsSync()) {
58+
canvasKitDirectory.deleteSync(recursive: true);
59+
}
5060
}
5161
}
5262
}

0 commit comments

Comments
 (0)