pug-site-core 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/utils.js CHANGED
@@ -12,21 +12,15 @@ export const pathSymbol = process.platform.startsWith("win") ? "\\" : "/";
12
12
 
13
13
  /**
14
14
  * 获取pages目录下所有pug文件的路径数组
15
- * @param {boolean} isFilter - 是否需要过滤路径(去除语言和设备类型目录)
16
15
  * @returns {Promise<string[]>} 返回pug文件路径数组
17
16
  */
18
- export async function getPagesPugFilePathArr(isFilter) {
17
+ export async function getPagesPugFilePathArr() {
19
18
  let pagesPugFilePathArr = (
20
19
  await fse.readdir(paths.template.pages, {
21
20
  recursive: true,
22
21
  })
23
22
  ).filter((fileName) => fileName.endsWith(".pug"));
24
23
 
25
- if (isFilter) {
26
- pagesPugFilePathArr = pagesPugFilePathArr.map((fileName) => {
27
- return pagesPathFilter(fileName);
28
- });
29
- }
30
24
  pagesPugFilePathArr = Array.from(new Set(pagesPugFilePathArr));
31
25
  return pagesPugFilePathArr;
32
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pug-site-core",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -51,7 +51,7 @@
51
51
  "ws": "^8.18.0"
52
52
  },
53
53
  "license": "ISC",
54
- "description": "增加debug模板、添加abtest功能",
54
+ "description": "优化静态html打包的log、并优化默认下载数据线程",
55
55
  "files": [
56
56
  "lib/",
57
57
  "index.js"