Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions web/_tool/fix_base_tags.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:io';

import 'package:path/path.dart' as p;

Future<void> main() async {
Expand Down Expand Up @@ -47,6 +48,15 @@ Future<void> fixBaseTags() async {
);
await index.writeAsString(newContents);
}

// Since all of the web examples use the hosted canvaskit bits
// There is no need to deploy these
final canvasKitDirectory = Directory(
p.join(builtSample.path, 'canvaskit'),
);
if (canvasKitDirectory.existsSync()) {
canvasKitDirectory.deleteSync(recursive: true);
}
}
}
}