io17
io17 copied to clipboard
ngu-sw-manifest not caching all data
I'm building my own PWA using updated angular versions (4.3.1). I've gotten ngu-sw-manifest to work, it requires me to use the command ./node_modules/.bin/ngu-sw-manifest but it works. My issue is, it is only caching two items. It's missing all assets including images, favicon.ico, and some other items. Is there any common reason this could be happening? It also is not caching my manifest.json file.
Here is my package.json file
{
"name": "angular-test",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "./run.sh",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^4.3.1",
"@angular/common": "^4.3.1",
"@angular/compiler": "^4.3.1",
"@angular/core": "^4.3.1",
"@angular/forms": "^4.3.1",
"@angular/http": "^4.3.1",
"@angular/platform-browser": "^4.3.1",
"@angular/platform-browser-dynamic": "^4.3.1",
"@angular/platform-server": "^4.3.1",
"@angular/router": "^4.3.1",
"@angular/service-worker": "^1.0.0-beta.16",
"@ngui/map": "^0.18.4",
"@types/googlemaps": "^3.26.16",
"core-js": "^2.4.1",
"ng-pwa-tools": "0.0.15",
"rxjs": "^5.1.0",
"zone.js": "^0.8.4"
},
"devDependencies": {
"@angular/cli": "1.2.1",
"@angular/compiler-cli": "^4.3.1",
"@angular/language-service": "^4.3.1",
"@types/jasmine": "2.5.45",
"@types/node": "~6.0.60",
"codelyzer": "~3.0.1",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
"karma": "~1.7.0",
"karma-chrome-launcher": "~2.1.1",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~3.0.4",
"tslint": "~5.3.2",
"typescript": "~2.3.3"
}
}
This is the return I am getting after running the ngu-sw-manifest command
{
"static": {
"urls": {
"/3rdpartylicenses.txt": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
"/worker-basic.min.js": "2f12848c352bd6baf25f0f1d995351696ef518ff"
}
}
}
This is an outline of my file structure
dist
e2e
src
+-app
+-assets
+-environments
+-favicon.ico
+-index.html
+-main.ts
+-ngw-manifest.json
+-polyfills.ts
+-styles.css
+-test.ts
+-tsconfig.app.json
+-tsconfig.spec.json
+-typings.d.ts
+-tsconfig.json
+-tslint.json
karma.conf.js
node_modules
package-lock.json
package.json
protractor.conf.js
README.md
run.sh
The manifest file is also not responding the command. Any idea what Im doing wrong?
Sorry, it's not caching to items, the app is responding with two items to the command ngu-sw-manifest.