Skip to content

Commit

Permalink
feat(manifest): allow overriding publicPath (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll authored and pi0 committed Dec 6, 2017
1 parent 913b8d9 commit 4e6782e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/manifest/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function addManifest (options) {
name: process.env.npm_package_name,
short_name: process.env.npm_package_name,
description: process.env.npm_package_description,
publicPath,
icons: [],
start_url: routerBase + '?standalone=true',
display: 'standalone',
Expand Down Expand Up @@ -71,7 +72,7 @@ function addManifest (options) {

// Add manifest meta
if (!find(this.options.head.link, 'rel', 'manifest')) {
this.options.head.link.push({ rel: 'manifest', href: fixUrl(`${publicPath}/${manifestFileName}`) })
this.options.head.link.push({ rel: 'manifest', href: fixUrl(`${manifest.publicPath}/${manifestFileName}`) })
} else {
console.warn('Manifest meta already provided!')
}
Expand Down

0 comments on commit 4e6782e

Please sign in to comment.