Unverified Commit 22724370 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[flutter_tools] do not delete web directory during flutter build web (#69115)

parent 32b9af69
......@@ -36,10 +36,8 @@ Future<void> buildWeb(
final bool hasWebPlugins = (await findPlugins(flutterProject))
.any((Plugin p) => p.platforms.containsKey(WebPlugin.kConfigKey));
final Directory outputDirectory = globals.fs.directory(getWebBuildDirectory());
if (outputDirectory.existsSync()) {
outputDirectory.deleteSync(recursive: true);
outputDirectory.createSync(recursive: true);
}
outputDirectory.createSync(recursive: true);
await injectPlugins(flutterProject, webPlatform: true);
final Status status = globals.logger.startProgress('Compiling $target for the Web...');
final Stopwatch sw = Stopwatch()..start();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment