Skip to content

Commit

Permalink
chore(lib): ignore content folder on generate for nuxt 2.14 (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jul 22, 2020
1 parent e39b4a3 commit ac59666
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ module.exports = async function (moduleOptions) {
options.apiPrefixWithBase = baseRouter + options.apiPrefix
}

// Nuxt hooks
this.nuxt.hook('components:dirs', (dirs) => {
dirs.push({
path: '~/components/global',
global: true
})
})
this.nuxt.hook('generate:cache:ignore', ignore => ignore.push('content'))

const ws = new WS({
apiPrefix: options.apiPrefixWithBase
Expand Down

0 comments on commit ac59666

Please sign in to comment.