Skip to content

Commit

Permalink
Fix urls in manifest file
Browse files Browse the repository at this point in the history
  • Loading branch information
Roshan Jossey committed Apr 9, 2017
1 parent 82e4ee6 commit 8fd5fb6
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
12 changes: 5 additions & 7 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,17 @@
"devDependencies": {
"gh-pages": "^0.12.0",
"react-scripts": "0.7.0",
"sw-precache": "^4.0.0"
"sw-precache": "^4.2.2"
},
"dependencies": {
"react": "^15.3.2",
"react-dom": "^15.3.2"
"react": "^15.4.0",
"react-dom": "^15.4.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build && cp manifest.json build/ && sw-precache --root='build/' --static-file-globs='build/**/!(*map*)'",
"gh-pages": "gh-pages -d build",
"build": "react-scripts build && sw-precache --config=sw-precache-config.js",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"deploy": "npm run build&&gh-pages -d build"
},
"homepage": "./"
}
}
Binary file modified app/public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/public/android-chrome-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"name": "First Contributions",
"icons": [
{
"src": "/android-chrome-192x192.png",
"src": "android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-256x256.png",
"src": "android-chrome-256x256.png",
"sizes": "256x256",
"type": "image/png"
}
Expand Down
10 changes: 10 additions & 0 deletions app/sw-precache-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
stripPrefix: 'build/',
staticFileGlobs: [
'build/*.html',
'build/manifest.json',
'build/static/**/!(*map*)'
],
dontCacheBustUrlsMatching: /\.\w{8}\./,
swFilePath: 'build/service-worker.js'
};

0 comments on commit 8fd5fb6

Please sign in to comment.