Skip to content

Commit

Permalink
fix: can't render pages on older versions of Nuxt if options.watch is…
Browse files Browse the repository at this point in the history
… missing (#52)

* Fixed support for older versions of Nuxt

Tested on Nuxt v1.4.2 and v2.14.6

* fixed lint errors
  • Loading branch information
arikw committed Dec 15, 2020
1 parent 191b8fc commit 1782113
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/module.js
Expand Up @@ -29,6 +29,7 @@ module.exports = function (moduleOptions) {
'.eslintrc.js'
]

this.options.watch = this.options.watch || []
this.options.watch.push(
...filesToWatch.map(file => resolve(this.options.rootDir, file))
)
Expand Down

0 comments on commit 1782113

Please sign in to comment.