pug-site-core 3.0.13 → 3.0.15

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/devServer.js CHANGED
@@ -173,7 +173,7 @@ function setupRoutes(app, wss) {
173
173
  }
174
174
  pugPath = paths.resolveRoot(pagsTemplatePath, lastPath) + ".pug";
175
175
  } else {
176
- pugPath = paths.resolveRoot(pagsTemplatePath, pageInfoObj.pugPath) + ".pug";
176
+ pugPath = paths.resolveRoot(pagsTemplatePath, pageInfoObj.pugPath);
177
177
  data = pageInfoObj.data;
178
178
  jsonDataPath = "自定义路由数据";
179
179
  }
package/lib/generate.js CHANGED
@@ -534,7 +534,7 @@ export async function buildStatic() {
534
534
  try {
535
535
  return await htmlMinify(html, htmlMinifyOptions);
536
536
  } catch (error) {
537
- console.warn(`HTML压缩失败 [${filePath}]:`, error.message);
537
+ console.warn(`HTML压缩失败 [${filePath}]`);
538
538
  return html; // 如果压缩失败,返回原始HTML
539
539
  }
540
540
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pug-site-core",
3
- "version": "3.0.13",
3
+ "version": "3.0.15",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -52,7 +52,7 @@
52
52
  "ws": "^8.18.0"
53
53
  },
54
54
  "license": "ISC",
55
- "description": "优化自定义路由的pug文件路径获取",
55
+ "description": "取消压缩失败的massage log",
56
56
  "files": [
57
57
  "lib/",
58
58
  "index.js"