diff --git a/build/build-readme.ts b/build/build-readme.ts index 522053b..7f8fb5e 100644 --- a/build/build-readme.ts +++ b/build/build-readme.ts @@ -40,7 +40,10 @@ const noReadmeList: string[] = demos return `- [${folder}](${relPath})`; }); -const mdList = [...readmeList, '\n_还没写文档的_\n', ...noReadmeList].join('\n'); +const mdList = (noReadmeList.length + ? [...readmeList, '\n_还没写文档的_\n', ...noReadmeList] + : [...readmeList] +).join('\n'); // * ================================================================================ diff --git a/readme.md b/readme.md index 844fb67..3420de0 100644 --- a/readme.md +++ b/readme.md @@ -24,10 +24,7 @@ - [15 React](demo/15-react) - [16 Vue](demo/16-vue) - [17 目前为止的功能\*(二)](demo/17-milestone-with-framework) - -_还没写文档的_ - -- [18-webpack-output-filename](demo/18-webpack-output-filename) +- [18 输出文件名、Vendor](demo/18-webpack-output-filename)