You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for f in _framework/_bin/*; do mv "$f" "`echo $f | sed -e 's/\.dll\b/.bin/g'`"; done
423
429
sed -i 's/\.dll"/.bin"/g' _framework/blazor.boot.json
424
430
```
431
+
432
+
If service worker assets are also in use, add the following command:
433
+
434
+
```console
435
+
sed -i 's/\.dll"/.bin"/g' service-worker-assets.js
436
+
```
425
437
426
438
To use a different file extension than *.bin*, replace *.bin* in the preceding commands.
427
439
@@ -430,6 +442,8 @@ To address the compressed *blazor.boot.json.gz* and *blazor.boot.json.br* files,
430
442
* Remove the compressed *blazor.boot.json.gz* and *blazor.boot.json.br* files. Compression is disabled with this approach.
431
443
* Recompress the updated *blazor.boot.json* file.
432
444
445
+
The preceding guidance also applies when service worker assets are in use. Remove or recompress *wwwroot/service-worker-assets.js.br* and *wwwroot/service-worker-assets.js.gz*. Otherwise, file integrity checks fail in the browser.
446
+
433
447
The following Windows example uses a PowerShell script placed at the root of the project.
434
448
435
449
*ChangeDLLExtensions.ps1:*:
@@ -441,6 +455,12 @@ dir $filepath\bin\Release\$tfm\wwwroot\_framework\_bin | rename-item -NewName {
0 commit comments