Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b6a5ead

Browse files
committed
fix(meta): load meta when ssr is disable and using nuxt dev (fixes #219)
1 parent bea24f8 commit b6a5ead

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/meta/module.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ const { mergeMeta } = require('./meta.merge')
66
module.exports = function nuxtMeta (pwa) {
77
const { nuxt } = this
88

9-
nuxt.hook('build:before', () => generateMeta.call(this, pwa))
9+
nuxt.hook('build:before', () => {
10+
generateMeta.call(this, pwa)
11+
})
1012

1113
// SPA Support
14+
nuxt.hook('build:done', () => {
15+
SPASupport.call(this, pwa)
16+
})
1217
if (nuxt.options.target === 'static') {
1318
nuxt.hook('generate:extendRoutes', () => SPASupport.call(this, pwa))
1419
} else if (!nuxt.options._build) {

0 commit comments

Comments
 (0)