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/dist/bundle.js +1 -1
- package/package.json +1 -1
- package/src/index.js +5 -3
package/package.json
CHANGED
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
|
-
|
|
276
|
-
|
|
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
|
// 每次启动服务后仅对第一次失败进行验证
|