pug-site-core 3.0.11 → 3.0.12

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.
Files changed (2) hide show
  1. package/lib/generate.js +9 -8
  2. package/package.json +2 -2
package/lib/generate.js CHANGED
@@ -767,14 +767,6 @@ export async function buildStatic() {
767
767
  return;
768
768
  }
769
769
 
770
- const html = generateHtml(
771
- pagesPugToFn,
772
- funName,
773
- data,
774
- pugTemplate,
775
- commonData
776
- );
777
-
778
770
  // 构建输出路径
779
771
  let finalPugTemplate = pugTemplate;
780
772
  if (data.page_name) {
@@ -790,6 +782,15 @@ export async function buildStatic() {
790
782
  finalPugTemplate.replace(/\.[^.]*$/, ".html")
791
783
  );
792
784
  console.log(htmlPath);
785
+
786
+ const html = generateHtml(
787
+ pagesPugToFn,
788
+ funName,
789
+ data,
790
+ pugTemplate,
791
+ commonData
792
+ );
793
+
793
794
  const compressedHtml = await compressHtml(html, htmlPath);
794
795
  await fse.outputFile(htmlPath, compressedHtml);
795
796
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pug-site-core",
3
- "version": "3.0.11",
3
+ "version": "3.0.12",
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": "修复语言数据打包失败的问题以及commonData的合并问题",
55
+ "description": "修改静态打包的log顺序",
56
56
  "files": [
57
57
  "lib/",
58
58
  "index.js"