|
| 1 | +/** |
| 2 | + * Configuration for head elements added during the creation of index.html. |
| 3 | + * |
| 4 | + * All href attributes are added the publicPath (if exists) by default. |
| 5 | + * You can explicitly hint to prefix a publicPath by setting a boolean value to a key that has |
| 6 | + * the same name as the attribute you want to operate on, but prefix with = |
| 7 | + * |
| 8 | + * Example: |
| 9 | + * { name: "msapplication-TileImage", content: "/assets/icon/ms-icon-144x144.png", "=content": true }, |
| 10 | + * Will prefix the publicPath to content. |
| 11 | + * |
| 12 | + * { rel: "apple-touch-icon", sizes: "57x57", href: "/assets/icon/apple-icon-57x57.png", "=href": false }, |
| 13 | + * Will not prefix the publicPath on href (href attributes are added by default |
| 14 | + * |
| 15 | + */ |
| 16 | +module.exports = { |
| 17 | + link: [ |
| 18 | + /** <link> tags for "apple-touch-icon" (AKA Web Clips). **/ |
| 19 | + { rel: "apple-touch-icon", sizes: "57x57", href: "/assets/icon/apple-icon-57x57.png" }, |
| 20 | + { rel: "apple-touch-icon", sizes: "60x60", href: "/assets/icon/apple-icon-60x60.png" }, |
| 21 | + { rel: "apple-touch-icon", sizes: "72x72", href: "/assets/icon/apple-icon-72x72.png" }, |
| 22 | + { rel: "apple-touch-icon", sizes: "76x76", href: "/assets/icon/apple-icon-76x76.png" }, |
| 23 | + { rel: "apple-touch-icon", sizes: "114x114", href: "/assets/icon/apple-icon-114x114.png" }, |
| 24 | + { rel: "apple-touch-icon", sizes: "120x120", href: "/assets/icon/apple-icon-120x120.png" }, |
| 25 | + { rel: "apple-touch-icon", sizes: "144x144", href: "/assets/icon/apple-icon-144x144.png" }, |
| 26 | + { rel: "apple-touch-icon", sizes: "152x152", href: "/assets/icon/apple-icon-152x152.png" }, |
| 27 | + { rel: "apple-touch-icon", sizes: "180x180", href: "/assets/icon/apple-icon-180x180.png" }, |
| 28 | + |
| 29 | + /** <link> tags for android web app icons **/ |
| 30 | + { rel: "icon", type: "image/png", sizes: "192x192", href: "/assets/icon/android-icon-192x192.png" }, |
| 31 | + |
| 32 | + /** <link> tags for favicons **/ |
| 33 | + { rel: "icon", type: "image/png", sizes: "32x32", href: "/assets/icon/favicon-32x32.png" }, |
| 34 | + { rel: "icon", type: "image/png", sizes: "96x96", href: "/assets/icon/favicon-96x96.png" }, |
| 35 | + { rel: "icon", type: "image/png", sizes: "16x16", href: "/assets/icon/favicon-16x16.png" }, |
| 36 | + |
| 37 | + /** <link> tags for a Web App Manifest **/ |
| 38 | + { rel: "manifest", href: "/assets/manifest.json" } |
| 39 | + ], |
| 40 | + meta: [ |
| 41 | + { name: "msapplication-TileColor", content: "#00bcd4" }, |
| 42 | + { name: "msapplication-TileImage", content: "/assets/icon/ms-icon-144x144.png", "=content": true }, |
| 43 | + { name: "theme-color", content: "#00bcd4" } |
| 44 | + ] |
| 45 | +}; |
0 commit comments