mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
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:
parent
d4bbf000d5
commit
4aee06e74f
4 changed files with 4 additions and 4 deletions
|
@ -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}`];
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue