We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12c17dc commit ccb2c33Copy full SHA for ccb2c33
packages/manifest/index.js
@@ -72,7 +72,9 @@ function addManifest (options) {
72
73
// Add manifest meta
74
if (!find(this.options.head.link, 'rel', 'manifest')) {
75
- this.options.head.link.push({ rel: 'manifest', href: fixUrl(`${manifest.publicPath}/${manifestFileName}`) })
+ const baseAttribute = { rel: 'manifest', href: fixUrl(`${manifest.publicPath}/${manifestFileName}`) }
76
+ const attribute = manifest.crossorigin ? Object.assign({}, baseAttribute, { crossorigin: manifest.crossorigin }) : baseAttribute
77
+ this.options.head.link.push(attribute)
78
} else {
79
console.warn('Manifest meta already provided!')
80
}
0 commit comments