A dart transformer to generate an appcache manifest file
This transformer generates an appcache manifest file with all the project resources and modifies the entry points to reference it. The appcache manifest is only generated in release mode
0.1.2 Added support for caching files in lib folder
Add the transformer to your pubspec.yaml:
transformers:
- appcache:
$exclude: ["**.dart"]
entry_points: web/index.html
cache:
- web/index.html_bootstrap.dart.js
(Assuming you already added this package to your pubspec.yaml file.)
transformers:
- appcache:
$exclude: ["file1", "dir1", "**.dart"]
entry_points: web/index.html
transformers:
- appcache:
entry_points: web/index.html
cache:
- web/index.html_bootstrap.dart.js
- web/packages/web_components/webcomponents.min.js
- web/packages/web_components/dart_support.js
- web/packages/polymer/src/js/polymer/polymer.min.js
- https://ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js
transformers:
- appcache:
entry_points: web/index.html
network:
- web/file1
- web/file2
transformers:
- appcache:
entry_points: web/index.html
fallback:
- / web/offine.html