Browse Source

修改配置文件

master
pengpeng.zhai 1 year ago
parent
commit
395de2114c
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      config/config.js

+ 4
- 3
config/config.js View File

11
 const os = require('os');
11
 const os = require('os');
12
 const happyThreadPool = HappyPack.ThreadPool({size: os.cpus().length});
12
 const happyThreadPool = HappyPack.ThreadPool({size: os.cpus().length});
13
 let pathVars = require("./pathVars");
13
 let pathVars = require("./pathVars");
14
+const { log } = require('console');
14
 let config = {};
15
 let config = {};
15
 
16
 
16
 /*----------------------------------- page ---------------------------------*/
17
 /*----------------------------------- page ---------------------------------*/
17
 //测试页面
18
 //测试页面
18
 let files = [].concat(
19
 let files = [].concat(
19
-    glob.sync(pathVars.testPath + `/Custom*/index.html`),
20
+    glob.sync(pathVars.testPath + `/echarts/Custom*/index.html`),
20
 );
21
 );
21
 console.log("测试页面\n", files);
22
 console.log("测试页面\n", files);
22
 let entryDev = {
23
 let entryDev = {
34
     obj["filePath"] = filePath;
35
     obj["filePath"] = filePath;
35
     obj["chunkName"] = chunkName;
36
     obj["chunkName"] = chunkName;
36
     obj["htmlName"] = htmlName;
37
     obj["htmlName"] = htmlName;
37
-    obj["entryJs"] = pathVars.testPath + "/" + chunkName + "/index.js";
38
+    obj["entryJs"] = pathVars.testPath + "/" + typeName +'/'+chunkName + "/index.js";
38
     entryDev[chunkName] = obj["entryJs"];
39
     entryDev[chunkName] = obj["entryJs"];
39
     pageAry.push(obj);
40
     pageAry.push(obj);
40
 });
41
 });
41
 
42
 
42
 
43
 
43
 //图表主js文件
44
 //图表主js文件
44
-let chartFiles = glob.sync(pathVars.srcPath + "/chart/Custom*/Custom*.js");
45
+let chartFiles = glob.sync(pathVars.srcPath + "/chart/echarts/Custom*/Custom*.js");
45
 console.log("图表主js文件\n", chartFiles);
46
 console.log("图表主js文件\n", chartFiles);
46
 let chartAry = [];
47
 let chartAry = [];
47
 let entryDist = {};
48
 let entryDist = {};

Loading…
Cancel
Save