wgt-node-utils 1.2.10 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgt-node-utils",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "description": "WGT工具类包",
5
5
  "main": "dist/bundle.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -272,8 +272,10 @@ class wgtNodeUtils {
272
272
  this.fileContents[file] = fs.readFileSync(filePath, 'utf8');
273
273
  }
274
274
  });
275
- // 增加react依赖
276
- fileContents['preact.min.js'] = fs.readFileSync(path.join(__dirname, `../${name}/dist/preact.min.js`),'utf8');
275
+
276
+ // 增加preact依赖
277
+ this.fileContents['preact.min.js'] = fs.readFileSync(path.join(dirname, `../${buildName}/dist/preact.min.js`),'utf8');
278
+
277
279
  console.log('静态资源列表:');
278
280
 
279
281
  const f2eFileLoadStatus = Object.keys(this.fileContents).every((item) => {
@@ -653,7 +655,7 @@ class wgtNodeUtils {
653
655
  let f2eFiles = {
654
656
  jsStr: this.fileContents[jsName],
655
657
  cssStr: this.fileContents[cssName],
656
- preactStr: fileContents['preact.min.js']
658
+ preactStr: this.fileContents['preact.min.js']
657
659
  };
658
660
 
659
661
  // 每次启动服务后仅对第一次失败进行验证