@nuxtjs/meta
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="2.0.1"></a> | ||
## [2.0.1](https://github.com/nuxt-community/pwa-module/compare/@nuxtjs/meta@2.0.0...@nuxtjs/meta@2.0.1) (2017-11-17) | ||
### Bug Fixes | ||
* workaround to fill meta with SPA and nuxt start ([a0fb908](https://github.com/nuxt-community/pwa-module/commit/a0fb908)) | ||
<a name="2.0.0"></a> | ||
@@ -8,0 +19,0 @@ # [2.0.0](https://github.com/nuxt-community/pwa-module/compare/@nuxtjs/meta@1.5.3...@nuxtjs/meta@2.0.0) (2017-11-16) |
@@ -6,3 +6,3 @@ const debug = require('debug')('nuxt:pwa') | ||
module.exports = function nuxtMeta (_options) { | ||
const hook = builder => { | ||
const hook = () => { | ||
debug('Adding meta') | ||
@@ -12,2 +12,6 @@ generateMeta.call(this, _options) | ||
if (this.options.mode === 'spa') { | ||
return hook() | ||
} | ||
this.nuxt.hook ? this.nuxt.hook('build:before', hook) : this.nuxt.plugin('build', hook) | ||
@@ -14,0 +18,0 @@ } |
{ | ||
"name": "@nuxtjs/meta", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
9490
119