@zohodesk/client_build_tool 0.0.6-exp.46 → 0.0.6-exp.48
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.
|
@@ -26,20 +26,36 @@ exports.args = args;
|
|
|
26
26
|
const processEnv = (0, _npmConfigToObject.npmConfigToObject)();
|
|
27
27
|
const cliArgsObject = (0, _cliArgsToObject.cliArgsToObject)(args);
|
|
28
28
|
|
|
29
|
-
if (cliArgsObject
|
|
30
|
-
cliArgsObject
|
|
29
|
+
if (cliArgsObject.app_domain && cliArgsObject.app_domain == 'kubernetes') {
|
|
30
|
+
cliArgsObject.k8s = true;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
if (cliArgsObject
|
|
34
|
-
cliArgsObject
|
|
33
|
+
if (cliArgsObject.app_domain) {
|
|
34
|
+
cliArgsObject.domain = cliArgsObject.app_domain;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
if (cliArgsObject
|
|
38
|
-
cliArgsObject
|
|
37
|
+
if (cliArgsObject.app_port) {
|
|
38
|
+
cliArgsObject.port = cliArgsObject.app_port;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
if (cliArgsObject
|
|
42
|
-
cliArgsObject
|
|
41
|
+
if (cliArgsObject.app_host) {
|
|
42
|
+
cliArgsObject.host = cliArgsObject.app_host;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (processEnv.app_domain && processEnv.app_domain == 'kubernetes') {
|
|
46
|
+
cliArgsObject.k8s = true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (processEnv.app_domain) {
|
|
50
|
+
cliArgsObject.domain = processEnv.app_domain;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if (processEnv.app_port) {
|
|
54
|
+
cliArgsObject.port = processEnv.app_port;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (processEnv.app_host) {
|
|
58
|
+
cliArgsObject.host = processEnv.app_host;
|
|
43
59
|
}
|
|
44
60
|
|
|
45
61
|
Object.assign(processEnv, cliArgsObject);
|
|
@@ -24,7 +24,7 @@ function optimizationConfig(options) {
|
|
|
24
24
|
const {
|
|
25
25
|
chunkSplitEnable
|
|
26
26
|
} = options.i18nChunkSplit;
|
|
27
|
-
const i18nChunkFilename = (0, _nameTemplates.nameTemplates)('
|
|
27
|
+
const i18nChunkFilename = (0, _nameTemplates.nameTemplates)('i18njs', options);
|
|
28
28
|
const chunkFilenameHasContentHash = (0, _hashUtils.hasContentHash)(i18nChunkFilename);
|
|
29
29
|
/**
|
|
30
30
|
* NOTE: we only need multiple runtime files when we use contentHash
|
|
@@ -32,7 +32,7 @@ function configI18nSplitPlugin(options) {
|
|
|
32
32
|
templateLabel: i18nChunkSplit.templateLabel,
|
|
33
33
|
disableDefault: i18nChunkSplit.disableDefault,
|
|
34
34
|
filename: (0, _nameTemplates.nameTemplates)('i18njs', options),
|
|
35
|
-
chunkFilename: (0, _nameTemplates.nameTemplates)('
|
|
35
|
+
chunkFilename: (0, _nameTemplates.nameTemplates)('i18njs', options),
|
|
36
36
|
publicPath: i18nPublicPath,
|
|
37
37
|
i18nManifestFileName: (0, _nameTemplates.nameTemplates)('i18nmanifest', options),
|
|
38
38
|
// template: (object, locale) => `window.loadI18n(${JSON.stringify(object)}, ${JSON.stringify(locale)})`,
|
package/npm-shrinkwrap.json
CHANGED