@redhat-cloud-services/frontend-components-config 5.0.2 → 5.0.4
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 +2 -2
- package/src/config.js +2 -2
- package/src/config.test.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redhat-cloud-services/frontend-components-config",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Config plugins and settings for RedHat Cloud Services project.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"homepage": "https://github.com/RedHatInsights/frontend-components/tree/master/packages/config#readme",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.8",
|
|
24
|
-
"@redhat-cloud-services/frontend-components-config-utilities": "^2.0.
|
|
24
|
+
"@redhat-cloud-services/frontend-components-config-utilities": "^2.0.3",
|
|
25
25
|
"assert": "^2.0.0",
|
|
26
26
|
"axios": "^0.27.2",
|
|
27
27
|
"babel-loader": "^8.2.5",
|
package/src/config.js
CHANGED
|
@@ -47,7 +47,7 @@ module.exports = ({
|
|
|
47
47
|
// additional node_modules dirs for searchIgnoredStyles, usefull in monorepo scenario
|
|
48
48
|
nodeModulesDirectories = [],
|
|
49
49
|
} = {}) => {
|
|
50
|
-
const filenameMask = `js/[name].${!_unstableHotReload && useFileHash ? `[
|
|
50
|
+
const filenameMask = `js/[name].${!_unstableHotReload && useFileHash ? `[fullhash].` : ''}js`;
|
|
51
51
|
if (betaEnv) {
|
|
52
52
|
env = `${betaEnv}-beta`;
|
|
53
53
|
console.warn('betaEnv is deprecated in favor of env');
|
|
@@ -165,7 +165,7 @@ module.exports = ({
|
|
|
165
165
|
test: /\.(woff(2)?|ttf|jpg|png|eot|gif|svg)(\?v=\d+\.\d+\.\d+)?$/,
|
|
166
166
|
type: 'asset/resource',
|
|
167
167
|
generator: {
|
|
168
|
-
filename: '
|
|
168
|
+
filename: 'fonts/[name][ext]',
|
|
169
169
|
},
|
|
170
170
|
},
|
|
171
171
|
{
|
package/src/config.test.js
CHANGED
|
@@ -30,10 +30,10 @@ describe('should create dummy config with no options', () => {
|
|
|
30
30
|
|
|
31
31
|
test('output', () => {
|
|
32
32
|
expect(output).toEqual({
|
|
33
|
-
filename: expect.stringMatching(/js\/\[name\]\.\[
|
|
33
|
+
filename: expect.stringMatching(/js\/\[name\]\.\[fullhash\]\.js/),
|
|
34
34
|
path: '/dist',
|
|
35
35
|
publicPath: undefined,
|
|
36
|
-
chunkFilename: expect.stringMatching(/js\/\[name\]\.\[
|
|
36
|
+
chunkFilename: expect.stringMatching(/js\/\[name\]\.\[fullhash\]\.js/),
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
39
|
|