Crates.io | flutter_web_hasher |
lib.rs | flutter_web_hasher |
version | 0.2.0 |
created_at | 2025-07-02 06:21:17.239209+00 |
updated_at | 2025-07-12 06:14:15.707446+00 |
description | Add hash suffixes to flutter web products to resolve browser caching problem. |
homepage | |
repository | https://github.com/xuxiaocheng0201/flutter_web_hasher |
max_upload_size | |
id | 1734586 |
size | 32,293 |
A tool that solves the browser caching problem of flutter web building products.
Install this tool by cargo:
cargo install flutter_web_hasher
Run the command in the root directory of your flutter project:
flutter build web --release
flutter_web_hasher --skip index.html
The files in build/web
have been processed.
Add hash suffixes to flutter web products to resolve browser caching problem.
Usage: flutter_web_hasher [OPTIONS]
Options:
-d, --directory <DIRECTORY> Target directory [default: ./build/web]
-s, --skip <SKIP> Skip hash files. Stripped from `directory`. Not start with '/'. E.g., `index.html`
--round <ROUND> Hash round. Executing twice can achieve cascading updates [default: 2]
-h, --help Print help
-V, --version Print version
This project is licensed under either of
Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0) MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.