docs(v2): fix getPathsToWatch() example syntax in lifecycle APIs (#2357)

* Update lifecycle-apis.md

Fix getPathsToWatch() example syntax issue

* fix syntax in other versions

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
This commit is contained in:
Yangshun Tay 2020-03-05 09:23:15 +08:00 committed by GitHub
parent d4bbf000d5
commit 4aee06e74f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ module.exports = function(context, options) {
name: 'docusaurus-plugin',
getPathsToWatch() {
const contentPath = path.resolve(context.siteDir, options.path);
return [`${contentPath}/**/*.{ts,tsx}`);
return [`${contentPath}/**/*.{ts,tsx}`];
},
};
};