Skip to content

Commit 1782113

Browse files
authoredDec 15, 2020
fix: can't render pages on older versions of Nuxt if options.watch is missing (#52)
* Fixed support for older versions of Nuxt Tested on Nuxt v1.4.2 and v2.14.6 * fixed lint errors
1 parent 191b8fc commit 1782113

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎lib/module.js

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module.exports = function (moduleOptions) {
2929
'.eslintrc.js'
3030
]
3131

32+
this.options.watch = this.options.watch || []
3233
this.options.watch.push(
3334
...filesToWatch.map(file => resolve(this.options.rootDir, file))
3435
)

0 commit comments

Comments
 (0)
Please sign in to comment.