web_update_guard 0.1.0
web_update_guard: ^0.1.0 copied to clipboard
Stop Flutter web users running stale cached builds. A CLI stamps and cache-busts build/web; a runtime guard detects new deploys and reloads cleanly.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate web_update_guardUse it
The package has the following executables:
$ web_update_guard
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add web_update_guardThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
web_update_guard: ^0.1.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:web_update_guard/web_update_guard.dart';