flutter_web_hasher

Crates.ioflutter_web_hasher
lib.rsflutter_web_hasher
version0.2.0
created_at2025-07-02 06:21:17.239209+00
updated_at2025-07-12 06:14:15.707446+00
descriptionAdd hash suffixes to flutter web products to resolve browser caching problem.
homepage
repositoryhttps://github.com/xuxiaocheng0201/flutter_web_hasher
max_upload_size
id1734586
size32,293
XuXiaoCheng (xuxiaocheng0201)

documentation

https://docs.rs/flutter_web_hasher

README

flutter_web_hasher

Crate GitHub last commit GitHub issues GitHub pull requests GitHub

Description

A tool that solves the browser caching problem of flutter web building products.

Install

Install this tool by cargo: cargo install flutter_web_hasher

Usage

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

License

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.

Commit count: 0

cargo fmt