[devtools_extensions] Remove the deprecated --pwa-strategy flag from build_and_copy (#10027)
diff --git a/packages/devtools_extensions/CHANGELOG.md b/packages/devtools_extensions/CHANGELOG.md
index 5123fae..dd4359a 100644
--- a/packages/devtools_extensions/CHANGELOG.md
+++ b/packages/devtools_extensions/CHANGELOG.md
@@ -8,6 +8,7 @@
 * The minimum Flutter SDK version is bumped to 3.41.0.
 * Updates `devtools_shared` constraint to `^14.0.1`.
 * Add validation for `pubspec.yaml` existence and valid characters in the `config.yaml` `name` field to the `validate` command.
+* Remove the deprecated `--pwa-strategy` flag from the `build_and_copy` command.
 
 ## 0.5.1
 * Updates `devtools_app_shared` constraint to `^0.5.1`.
diff --git a/packages/devtools_extensions/bin/_build_and_copy.dart b/packages/devtools_extensions/bin/_build_and_copy.dart
index 5fa0a58..9a28f0b 100644
--- a/packages/devtools_extensions/bin/_build_and_copy.dart
+++ b/packages/devtools_extensions/bin/_build_and_copy.dart
@@ -59,13 +59,7 @@
     await _runProcess(
       processManager,
       Platform.isWindows ? 'flutter.bat' : 'flutter',
-      [
-        'build',
-        'web',
-        '--pwa-strategy=offline-first',
-        '--release',
-        '--no-tree-shake-icons',
-      ],
+      ['build', 'web', '--release', '--no-tree-shake-icons'],
       workingDirectory: source,
     );