@redhat-cloud-services/frontend-components-config 4.6.13 → 4.6.16
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redhat-cloud-services/frontend-components-config",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.16",
|
|
4
4
|
"description": "Config plugins and settings for RedHat Cloud Services project.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/RedHatInsights/frontend-components/tree/master/packages/config#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@redhat-cloud-services/frontend-components-config-utilities": "^1.5.
|
|
23
|
+
"@redhat-cloud-services/frontend-components-config-utilities": "^1.5.23",
|
|
24
24
|
"assert": "^2.0.0",
|
|
25
25
|
"axios": "^0.25.0",
|
|
26
26
|
"babel-loader": "^8.2.2",
|
package/src/config.js
CHANGED
|
@@ -38,6 +38,7 @@ module.exports = ({
|
|
|
38
38
|
useChromeTemplate = true,
|
|
39
39
|
bounceProd,
|
|
40
40
|
useAgent,
|
|
41
|
+
useDevBuild = true,
|
|
41
42
|
} = {}) => {
|
|
42
43
|
const filenameMask = `js/[name]${useFileHash ? `.${Date.now()}.[fullhash]` : ''}.js`;
|
|
43
44
|
if (betaEnv) {
|
|
@@ -202,6 +203,7 @@ module.exports = ({
|
|
|
202
203
|
},
|
|
203
204
|
bounceProd,
|
|
204
205
|
useAgent,
|
|
206
|
+
useDevBuild,
|
|
205
207
|
}),
|
|
206
208
|
},
|
|
207
209
|
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
const config = require('@redhat-cloud-services/frontend-components-config');
|
|
2
2
|
const commonPlugins = require('./webpack.plugins');
|
|
3
3
|
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
|
|
4
|
+
const fecConfig = require(process.env.FEC_CONFIG_PATH);
|
|
4
5
|
|
|
5
6
|
const { config: webpackConfig, plugins } = config({
|
|
6
7
|
rootFolder: process.env.FEC_ROOT_DIR || process.cwd(),
|
|
7
8
|
...(process.env.BETA === 'true' && { deployment: 'beta/apps' }),
|
|
8
9
|
});
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
const { plugins: externalPlugins } = fecConfig;
|
|
12
|
+
plugins.push(...commonPlugins, ...externalPlugins);
|
|
10
13
|
|
|
11
14
|
module.exports = (env) => {
|
|
12
15
|
if (env && env.analyze === 'true') {
|