gdu 4.0.5 → 4.0.6
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/CHANGELOG.md
CHANGED
|
@@ -18,7 +18,10 @@ const buildSSR = async (guruConfig) => {
|
|
|
18
18
|
cwd: roots_1.PROJECT_ROOT,
|
|
19
19
|
localDir: roots_1.GDU_ROOT,
|
|
20
20
|
extendEnv: true,
|
|
21
|
-
env: {
|
|
21
|
+
env: {
|
|
22
|
+
NODE_ENV: process.env.NODE_ENV || 'production',
|
|
23
|
+
APP_ENV: process.env.APP_ENV || 'prod',
|
|
24
|
+
},
|
|
22
25
|
})
|
|
23
26
|
.then((result) => {
|
|
24
27
|
console.log(`${kleur_1.dim('SUCCESS!')}`, `${kleur_1.dim('Listening')}: ${kleur_1.blue(result === null || result === void 0 ? void 0 : result.all)}`);
|
|
@@ -298,22 +298,21 @@ const baseOptions = (buildEnv, isMultiEnv) => ({
|
|
|
298
298
|
].filter(Boolean),
|
|
299
299
|
});
|
|
300
300
|
const { outputPath } = config_1.getGuruConfig();
|
|
301
|
-
const makeWebpackConfig = (buildEnv, isMultiEnv) => {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
};
|
|
301
|
+
const makeWebpackConfig = (buildEnv, isMultiEnv) => ({
|
|
302
|
+
name: buildEnv,
|
|
303
|
+
output: {
|
|
304
|
+
path: `${outputPath}/${!isMultiEnv && buildEnv === 'prod' ? '' : buildEnv}`,
|
|
305
|
+
publicPath: isDev
|
|
306
|
+
? '/'
|
|
307
|
+
: (buildEnv === 'prod' ? '#{PUBLIC_PATH_BASE}' : `https://static-mfe-${buildEnv}.autoguru.io`),
|
|
308
|
+
filename: `${fileMask}.js`,
|
|
309
|
+
chunkFilename: `chunks/${fileMask}.js`,
|
|
310
|
+
hashFunction: 'sha256',
|
|
311
|
+
crossOriginLoading: 'anonymous',
|
|
312
|
+
sourceMapFilename: 'sourceMaps/[file].map',
|
|
313
|
+
pathinfo: false,
|
|
314
|
+
},
|
|
315
|
+
});
|
|
317
316
|
const buildConfigs = () => {
|
|
318
317
|
const buildEnvs = configs_1.getBuildEnvs();
|
|
319
318
|
return buildEnvs.map((buildEnv) => ({
|