@hyext/builder-revues 1.4.2 → 1.4.4
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/index.js
CHANGED
@@ -440,6 +440,7 @@ function compileDevPluginForProd(projectPath, outputPath) {
|
|
440
440
|
function compileGame(mode, projectPath, outputPath) {
|
441
441
|
return __awaiter(this, void 0, void 0, function* () {
|
442
442
|
initCacheDir();
|
443
|
+
const isProd = mode === 'prod';
|
443
444
|
const { plugins } = yield tryLoadPlugins(projectPath);
|
444
445
|
const initOptions = {
|
445
446
|
projectPath,
|
@@ -448,11 +449,11 @@ function compileGame(mode, projectPath, outputPath) {
|
|
448
449
|
plugins,
|
449
450
|
mode,
|
450
451
|
compileSettings: {
|
451
|
-
minify:
|
452
|
+
minify: isProd
|
452
453
|
}
|
453
454
|
};
|
454
455
|
yield codeCompiler.compilerManager.init(Object.assign({}, initOptions));
|
455
|
-
const action =
|
456
|
+
const action = !isProd ? 'compileDev' : 'compile';
|
456
457
|
yield codeCompiler.compilerManager[action]();
|
457
458
|
copyProjectConfigJSON(projectPath, outputPath);
|
458
459
|
return initOptions;
|
@@ -727,7 +728,7 @@ function genEntrys(props) {
|
|
727
728
|
});
|
728
729
|
}
|
729
730
|
|
730
|
-
const libVersion = "1.
|
731
|
+
const libVersion = "1.4.0" ;
|
731
732
|
const libCdn = '//a.msstatic.com/huya/hd/h5/static-source/revue/lib';
|
732
733
|
|
733
734
|
function getLibVersion(builderConfig) {
|
@@ -839,7 +840,7 @@ function renderGameTemplate(opts) {
|
|
839
840
|
});
|
840
841
|
}
|
841
842
|
const entryRenderConfList = entrys.map(info => {
|
842
|
-
const finalExtInfo = Object.assign(Object.assign({}, extInfo), { envVersion: dev ? 'develop' : 'release', extType: info.extType });
|
843
|
+
const finalExtInfo = Object.assign(Object.assign({}, extInfo), { envVersion: dev ? 'develop' : 'release', extType: info.extType, buildEnv: buildEnv });
|
843
844
|
return {
|
844
845
|
input: path__default["default"].join(templatePath, 'minigame-page-manager.hbs'),
|
845
846
|
output: path__default["default"].join(mainPath, info.entryFilename),
|
@@ -959,7 +960,7 @@ function renderMiniprogramTemplate(opts) {
|
|
959
960
|
});
|
960
961
|
}
|
961
962
|
const entryRenderConfList = entrys.map(info => {
|
962
|
-
const finalExtInfo = Object.assign(Object.assign({}, extInfo), { envVersion: dev ? 'develop' : 'release', version: '', extType: info.extType });
|
963
|
+
const finalExtInfo = Object.assign(Object.assign({}, extInfo), { envVersion: dev ? 'develop' : 'release', version: '', extType: info.extType, buildEnv: buildEnv });
|
963
964
|
return {
|
964
965
|
input: path__default["default"].join(templatePath, 'miniapp-page-manager.hbs'),
|
965
966
|
output: path__default["default"].join(mainPath, info.entryFilename),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hyext/builder-revues",
|
3
|
-
"version": "1.4.
|
3
|
+
"version": "1.4.4",
|
4
4
|
"description": "> TODO: description",
|
5
5
|
"author": "loler",
|
6
6
|
"homepage": "",
|
@@ -25,9 +25,9 @@
|
|
25
25
|
},
|
26
26
|
"dependencies": {
|
27
27
|
"@hyext/preload": "^1.1.3",
|
28
|
-
"@revues/cocos-web-adapter": "1.4.
|
29
|
-
"@revues/code-compiler": "1.4.
|
30
|
-
"@revues/web-sdk-core": "1.4.
|
28
|
+
"@revues/cocos-web-adapter": "1.4.4",
|
29
|
+
"@revues/code-compiler": "1.4.4",
|
30
|
+
"@revues/web-sdk-core": "1.4.4",
|
31
31
|
"archiver": "^7.0.1",
|
32
32
|
"axios": "^1.7.3",
|
33
33
|
"chalk": "^2.4.2",
|
@@ -47,5 +47,5 @@
|
|
47
47
|
"@types/ramda": "^0.29.11",
|
48
48
|
"terser": "^5.31.0"
|
49
49
|
},
|
50
|
-
"gitHead": "
|
50
|
+
"gitHead": "c365e7a94b5980b5e1fc5886f45ca8be24111d71"
|
51
51
|
}
|