@zohodesk/client_build_tool 0.0.5-exp.6 → 0.0.5-exp.7
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.
|
@@ -21,13 +21,13 @@ function optionsProcessor(options) {
|
|
|
21
21
|
isCdnEnabled
|
|
22
22
|
} = options.cdnMapping;
|
|
23
23
|
const serverExtras = (0, _decidePublicPath.modifiedServerOptions)(options);
|
|
24
|
-
const publicPath = noPublicPath ?
|
|
24
|
+
const publicPath = noPublicPath ? null : (0, _decidePublicPath.decidePublicPath)(serverExtras);
|
|
25
25
|
const contextFolderPath = (0, _constants.joinWithAppPath)(context);
|
|
26
26
|
const defaultAppliedOptions = { ...options,
|
|
27
27
|
serverExtras,
|
|
28
28
|
// eslint-disable-next-line no-nested-ternary
|
|
29
29
|
mode: mode === null ? 'prod' : mode === 'dev' ? 'dev' : 'prod',
|
|
30
|
-
publicPath: (0, _modeUtils.isDevelopmentMode)(mode) || isCdnEnabled ?
|
|
30
|
+
publicPath: (0, _modeUtils.isDevelopmentMode)(mode) || isCdnEnabled ? null : publicPath,
|
|
31
31
|
contextFolderPath,
|
|
32
32
|
httpsOptions: serverExtras.httpsOptions
|
|
33
33
|
};
|
|
@@ -136,6 +136,7 @@ class I18nFilesEmitPlugin {
|
|
|
136
136
|
const fileName = fileNameTemplate.replaceAll('[locale]', locale);
|
|
137
137
|
const filename = (0, _pathCreator.pathCreator)(fileName, compilation, {
|
|
138
138
|
hash: compilation.hash,
|
|
139
|
+
locale,
|
|
139
140
|
chunkName: chunk.name,
|
|
140
141
|
chunkId: chunk.id,
|
|
141
142
|
chunkHash: chunk.hash,
|
|
@@ -21,8 +21,13 @@ function configBundleIntegrityReport(options) {
|
|
|
21
21
|
fileName: options.stats.fileName || 'bundle-report-integrity.json',
|
|
22
22
|
excludeKeysInReport: options.stats.excludeKeys || [],
|
|
23
23
|
options: {
|
|
24
|
-
|
|
25
|
-
...options.stats.options
|
|
24
|
+
preset: 'verbose',
|
|
25
|
+
...options.stats.options,
|
|
26
|
+
assets: true,
|
|
27
|
+
chunks: true,
|
|
28
|
+
modules: true,
|
|
29
|
+
builtAt: true,
|
|
30
|
+
hash: true
|
|
26
31
|
}
|
|
27
32
|
});
|
|
28
33
|
}
|