diff --git a/docs/guide/faq.md b/docs/guide/faq.md index e993251821..575de07c63 100644 --- a/docs/guide/faq.md +++ b/docs/guide/faq.md @@ -34,7 +34,7 @@ yarn add dumi cross-env -D }, ``` -3. 增加配置,新建 `.dumirc`。 +3. 增加配置,新建 `.dumirc.js`。 ```js export default { diff --git a/package.json b/package.json index feca0e4984..ec2ab08113 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dumi", - "version": "2.1.23", + "version": "2.1.24", "description": "📖 Documentation Generator of React Component", "keywords": [ "generator", diff --git a/src/features/theme/index.ts b/src/features/theme/index.ts index 64369730bd..25483a7b32 100644 --- a/src/features/theme/index.ts +++ b/src/features/theme/index.ts @@ -240,7 +240,9 @@ import { useOutlet, history } from 'dumi'; ${ enableNProgress ? ` -import nprogress from 'nprogress'; +import nprogress from '${winPath( + path.dirname(require.resolve('nprogress/package')), + )}'; import './nprogress.css'; ` : '' diff --git a/src/loaders/markdown/index.ts b/src/loaders/markdown/index.ts index db0b3fac20..a44ae35370 100644 --- a/src/loaders/markdown/index.ts +++ b/src/loaders/markdown/index.ts @@ -148,10 +148,6 @@ export default function mdLoader(this: any, content: string) { const opts: IMdLoaderOptions = this.getOptions(); const cb = this.async(); - // disable cache for avoid onResolveDemos and onResolveAtomMeta not work - // and dumi already save cache by self, loader cache is unnecessary - this.cacheable(false); - const cache = getCache('md-loader'); // format: {path:mtime:loaderOpts} const baseCacheKey = [