Permalink
Browse files

feat(manifest): allow overriding publicPath (#19)

  • Loading branch information...
simllll authored and pi0 committed Dec 6, 2017
1 parent 913b8d9 commit 4e6782ed7d261055b40cbc0678624c74d89897c1
Showing with 2 additions and 1 deletion.
  1. +2 −1 packages/manifest/index.js
@@ -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',
@@ -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!')
}

0 comments on commit 4e6782e

Please sign in to comment.