Skip to content

Commit a2ca2e0

Browse files
committed
Automatically correct the index.html file
1 parent 2fdd45f commit a2ca2e0

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

docs/flutter_service_worker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const TEMP = 'flutter-temp-cache';
44
const CACHE_NAME = 'flutter-app-cache';
55

66
const RESOURCES = {"version.json": "bba7b81c8c83254be29e6d0530c43605",
7-
"index.html": "aaeac02db2cecc2c32f80a5b78ece7d9",
7+
"index.html": "c3c175ddc23ac7fc1c6076d6ed394318",
88
"/": "38d1f4150e30dc63ccaebfcc9eaaa709",
99
"main.dart.js": "44181e468f648a0580f86a6dba8d3461",
1010
"flutter.js": "6fef97aeca90b426343ba6c5c9dc5d4a",

docs/index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
This is a placeholder for base href that will be replaced by the value of
1515
the `--base-href` argument provided to `flutter build`.
1616
-->
17+
1718

1819
<meta charset="UTF-8">
1920
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
@@ -36,7 +37,7 @@
3637

3738
<script>
3839
// The value below is injected by flutter build, do not touch.
39-
var serviceWorkerVersion = "847213135";
40+
var serviceWorkerVersion = "2727925859";
4041
</script>
4142
<!-- This script adds the flutter initialization JS code -->
4243
<script src="flutter.js" defer></script>

export.sh

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ flutter build web
33
rm -rf docs
44
mkdir docs
55
mv build/web/{.,}* docs/
6+
sed -i '' 's,<base href="/">,,g' docs/index.html
67
rmdir build/web

0 commit comments

Comments
 (0)