Skip to content

Commit

Permalink
Add separate app icon for larger sizes
Browse files Browse the repository at this point in the history
The current app icon has been made the favicon, and the new app icon
will be used for all the larger-sized icons.
  • Loading branch information
caleb531 committed Jan 4, 2018
1 parent 1a43b2e commit fd80a27
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 22 deletions.
30 changes: 20 additions & 10 deletions app/icons/app-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions app/icons/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 19 additions & 12 deletions brunch-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,25 @@ module.exports = {
},
// App icon generator
rsvg: {
conversions: [{
input: 'app/icons/app-icon.svg',
outputDefaults: {path: 'icons/app-icon-{width}.png'},
output: [
{width: 32, path: 'icons/favicon.png'},
{width: 180, path: 'icons/apple-touch-icon.png'},
{width: 192},
{width: 256},
{width: 384},
{width: 512}
]
}]
conversions: [
{
input: 'app/icons/favicon.svg',
output: [
{width: 32, path: 'icons/favicon.png'}
]
},
{
input: 'app/icons/app-icon.svg',
outputDefaults: {path: 'icons/app-icon-{width}.png'},
output: [
{width: 180, path: 'icons/apple-touch-icon.png'},
{width: 192},
{width: 256},
{width: 384},
{width: 512}
]
}
]
},
// Service worker cache for offline access
swPrecache: {
Expand Down

0 comments on commit fd80a27

Please sign in to comment.