Permalink
Browse files

fix(meta): generate only on build

  • Loading branch information...
pi0 committed Nov 16, 2017
1 parent 9d68d70 commit 1cace266e3528aa53d5a562e3d7ce1fefff7f4dc
Showing with 9 additions and 0 deletions.
  1. +9 −0 packages/meta/index.js
@@ -1,6 +1,15 @@
const debug = require('debug')('nuxt:pwa:meta')
const find = (arr, key, val) => arr.find(obj => val ? obj[key] === val : obj[key])
module.exports = function nuxtMeta (_options) {
this.nuxt.plugin('build', builder => {
debug('Generating meta')
generateMeta.call(this, _options)
})
}
function generateMeta (_options) {
// Defaults
const defaults = {
name: process.env.npm_package_name,

0 comments on commit 1cace26

Please sign in to comment.