总之,ngsw-config.json文件是Angular Service Worker的配置文件,允许开发者定义Service Worker在应用中的行为,包括缓存策略、需要缓存的文件、数据缓存、更新策略等。通过这个文件,开发者可以定制化地配置Service Worker,以实现更好的离线体验和性能优化。
需要注意的是,Service Worker 是一个强大的工具,但配置不当可能导致意外行为或潜在的性能问题。因此,在编辑 ngsw-config.json 文件时,开发者应该仔细了解每个选项的含义和影响,以确保其正确配置,以获得最佳的离线体验和性能优化。 总之,ngsw-config.json 文件是Angular Service Worker的配置文件,允许开发者定义Service ...
{ "$schema": "./node_modules/@angular/service-worker/config/schema.json", "index": "/index.html", "assetGroups": [ { "name": "app", "installMode": "prefetch", "resources": { "files": [ "/favicon.ico", "/index.html", "/manifest.webmanifest", "/*.css", "/*.js" ] } ...
Marketplace Pricing Sign inSign up ng-alain/delon Watch37 Star569 Fork565 Code Pull requests1 Actions Projects Security Insights More master delon/ngsw-config.json Go to file Copy path 53 lines (53 sloc)1.18 KB RawBlame { "$schema":"./node_modules/@angular/service-worker/config/schema.json...
master 此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库:https://github.com/NG-ZORRO/ng-zorro-antd 克隆/下载 git config --global user.name userName git config --global user.email userEmail ng-zorro / ngsw-config.json ngsw-config.json1.00 KB ...
一个典型的ngsw.json例子: {"configVersion":1,"index":"/index.html","assetGroups":[{"name":"app","installMode":"prefetch","updateMode":"prefetch","urls":["/favicon.ico","/index.html","/inline.5646543f86fbfdc19b11.bundle.js","/main.3bb4e08c826e33bb0fca.bundle.js","/polyfills....
一个典型的ngsw.json例子: {"configVersion":1,"index":"/index.html","assetGroups":[{"name":"app","installMode":"prefetch","updateMode":"prefetch","urls":["/favicon.ico","/index.html","/inline.5646543f86fbfdc19b11.bundle.js","/main.3bb4e08c826e33bb0fca.bundle.js","/polyfills....
"/delon/assets/pwa-manifest.json": "c87ce049fedb2c0be4a73f73e64263f280ad41ef", "/delon/assets/qq-group.png": "1effddfab735644966df1759c2768f282a3e650e", "/delon/assets/schema/basic.json": "d3b26817208571cfed1a5dd667875c358b1d7e1f", "/delon/assets/schema/conditional.json": ...
ServiceWorkerModule.register('./ngsw-worker.js', {enabled:true, }) And of course it's added in angular.json: "projects": {"client-app": { ..."architect": {"build": {"builder":"@angular-devkit/build-angular:browser","options": {"serviceWorker":true,"ngswConfigPath":"ngsw-config....
字面上直译为“先进的web应用”,而维基百科中给出的解释是——PWA是一个用来表示使用了最新技术的Web...