gdu 4.0.8 → 4.0.9
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
|
@@ -50,7 +50,6 @@ const createNextJSConfig = (buildEnv) => {
|
|
|
50
50
|
const isDev = !misc_1.isEnvProduction();
|
|
51
51
|
const env = process.env.APP_ENV || (isDev ? 'dev' : buildEnv);
|
|
52
52
|
const assetPrefix = isDev ? '' : (_a = config_1.getGuruConfig()) === null || _a === void 0 ? void 0 : _a.publicPath;
|
|
53
|
-
console.log({ assetPrefix, isDev });
|
|
54
53
|
return {
|
|
55
54
|
distDir: `dist/${env}/${assetPrefix}`,
|
|
56
55
|
reactStrictMode: true,
|
|
@@ -76,7 +76,6 @@ const baseOptions = (buildEnv, isMultiEnv) => ({
|
|
|
76
76
|
mode: isDev ? 'development' : 'production',
|
|
77
77
|
entry: {
|
|
78
78
|
main: [
|
|
79
|
-
!isDev && path_1.join(gduEntryPath, '/spa/set-public-path.js'),
|
|
80
79
|
path_1.join(gduEntryPath, '/polyfill.js'),
|
|
81
80
|
path_1.join(gduEntryPath, '/spa/client.js'),
|
|
82
81
|
].filter(Boolean),
|
|
@@ -304,7 +303,7 @@ const makeWebpackConfig = (buildEnv, isMultiEnv) => ({
|
|
|
304
303
|
path: `${outputPath}/${!isMultiEnv && buildEnv === 'prod' ? '' : buildEnv}`,
|
|
305
304
|
publicPath: isDev
|
|
306
305
|
? '/'
|
|
307
|
-
: (buildEnv === 'prod' ?
|
|
306
|
+
: (buildEnv === 'prod' ? `#{PUBLIC_PATH_BASE}${config_1.getProjectName()}` : `https://static-mfe-${buildEnv}.autoguru.io/${config_1.getProjectName()}`),
|
|
308
307
|
filename: `${fileMask}.js`,
|
|
309
308
|
chunkFilename: `chunks/${fileMask}.js`,
|
|
310
309
|
hashFunction: 'sha256',
|