@redhat-cloud-services/frontend-components-config 5.0.1 → 5.0.2

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": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "Config plugins and settings for RedHat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "bin": {
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 ? `[fullhash].` : ''}js`;
50
+ const filenameMask = `js/[name].${!_unstableHotReload && useFileHash ? `[contenthash].` : ''}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: 'fonts/[name][ext]',
168
+ filename: 'assets/[name][ext]',
169
169
  },
170
170
  },
171
171
  {
@@ -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\]\.\[fullhash\]\.js/),
33
+ filename: expect.stringMatching(/js\/\[name\]\.\[contenthash\]\.js/),
34
34
  path: '/dist',
35
35
  publicPath: undefined,
36
- chunkFilename: expect.stringMatching(/js\/\[name\]\.\[fullhash\]\.js/),
36
+ chunkFilename: expect.stringMatching(/js\/\[name\]\.\[contenthash\]\.js/),
37
37
  });
38
38
  });
39
39