Skip to content

Commit b63024e

Browse files
committed
Add estimated size to wkwebview asset
1 parent 6930f23 commit b63024e

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/packager/large-assets.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
// will be tried in succession if the previous one fails, perhaps because it's blocked by a school
66
// network filter.
77

8-
// estimatedSize is used for the download progress bar if the server or browser does not tell us
9-
// automatically. It's size in bytes after decoding Content-Encoding. If the real size of the file
10-
// does not exactly match, that's fine. This is just for the progress bar.
11-
// If you change these, use numbers from a production build, not a development build.
8+
// estimatedSize is used for the asset download progress bar if the server doesn't specify a
9+
// Content-Length. It's size in bytes after decoding Content-Encoding. Real size does not need to
10+
// match; this is just for the progress bar. estimatedSize is optional and can be omitted.
11+
// Make sure to use size estimates from production builds, not development ones.
1212

1313
// useBuildId is used for various cache related things. It shouldn't be changed.
1414

@@ -63,7 +63,8 @@ export default {
6363
},
6464
'webview-mac': {
6565
src: externalFile('WebView-macos-4.zip'),
66-
sha256: '580489b789b020e900417fabbe192abe24974555923c9d9280a723d2ad104314'
66+
sha256: '580489b789b020e900417fabbe192abe24974555923c9d9280a723d2ad104314',
67+
estimatedSize: 3537286
6768
},
6869
scaffolding: {
6970
src: relativeScaffolding('scaffolding-full.js'),

0 commit comments

Comments
 (0)