fix(v2): fix chokidar/watcher does not trigger reload on windows (#1943)

* fix(v2): fix chokidar/watcher does not trigger reload on windows

* nits

* nits

* stronger test
This commit is contained in:
Endi 2019-11-06 22:52:40 +07:00 committed by Yangshun Tay
parent ff83e6f8bc
commit baa884fe2e
7 changed files with 35 additions and 4 deletions

View file

@ -36,7 +36,7 @@ import {Configuration} from 'webpack';
const DEFAULT_OPTIONS: PluginOptions = {
path: 'docs', // Path to data on filesystem, relative to site dir.
routeBasePath: 'docs', // URL Route.
include: ['**/*.md', '**/*.mdx'], // Extensions to include.
include: ['**/*.{md,mdx}'], // Extensions to include.
sidebarPath: '', // Path to sidebar configuration for showing a list of markdown pages.
docLayoutComponent: '@theme/DocPage',
docItemComponent: '@theme/DocItem',