Skip to content

Commit

Permalink
fix(meta): load meta when ssr is disable and using nuxt dev (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 6, 2020
1 parent bea24f8 commit b6a5ead
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/meta/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ const { mergeMeta } = require('./meta.merge')
module.exports = function nuxtMeta (pwa) {
const { nuxt } = this

nuxt.hook('build:before', () => generateMeta.call(this, pwa))
nuxt.hook('build:before', () => {
generateMeta.call(this, pwa)
})

// SPA Support
nuxt.hook('build:done', () => {
SPASupport.call(this, pwa)
})
if (nuxt.options.target === 'static') {
nuxt.hook('generate:extendRoutes', () => SPASupport.call(this, pwa))
} else if (!nuxt.options._build) {
Expand Down

0 comments on commit b6a5ead

Please sign in to comment.