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