web_update_guard 0.1.0 copy "web_update_guard: ^0.1.0" to clipboard
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_guard

Use 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_guard

This 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.0

Alternatively, 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';
0
likes
160
points
0
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Topics

#web #cache #deployment #service-worker #update

License

MIT (license)

Dependencies

args, crypto, flutter, meta, path, web, yaml

More

Packages that depend on web_update_guard