@zohodesk/react-cli 1.1.24 → 1.1.25-exp.1

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -44,6 +44,10 @@ Now to run app
44
44
 
45
45
  # Change Logs
46
46
 
47
+ # 1.1.25 (12-08-2024)
48
+
49
+ - mp3 files support added
50
+
47
51
  # 1.1.24 (29-06-2024)
48
52
 
49
53
  - Worker loading logic fixes.
@@ -63,7 +63,7 @@ const output = {
63
63
  path: _path.default.resolve(appPath, outputFolder),
64
64
  filename: enableChunkHash ? 'js/[name].[chunkhash:20]_.js' : 'js/[name]_.js',
65
65
  chunkFilename: enableChunkHash ? 'js/[name].[chunkhash:20]_.js' : 'js/[name]_.js',
66
- jsonpFunction: `${context}Jsonp`,
66
+ jsonpFunction: `Jsonp${context}`,
67
67
  sourceMapFilename: enableChunkHash ? 'js/[name].[chunkhash:20]_.js.map' : 'js/[name]_.js.map'
68
68
  };
69
69
 
@@ -223,7 +223,7 @@ module.exports = {
223
223
  }
224
224
  }]
225
225
  }, {
226
- test: /\.ogg$/,
226
+ test: /\.ogg|\.mp3$/,
227
227
  use: [{
228
228
  loader: 'file-loader',
229
229
  options: {
@@ -19,7 +19,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
19
19
  const ImageExtRegex = /\.jpe?g$|\.gif$|\.png|\.webp$/;
20
20
  const FontExtRegex = /\.woff2|\.woff$|\.ttf$|\.eot$/;
21
21
  const SVGExtRegex = /\.svg$/;
22
- const AudioExtRegex = /\.ogg$/;
22
+ const AudioExtRegex = /\.ogg|\.mp3$/;
23
23
  const VidioExtRegex = /\.mp4|\.webm$/;
24
24
 
25
25
  function createLoaderOptionQueryString(loaderName, nameTemplate, limit = 1000) {
@@ -162,16 +162,15 @@ const getDevPlugins = (options, publicPath) => {
162
162
  pluginsArr.push(new _lodashWebpackPlugin.default({
163
163
  collections: true,
164
164
  shorthands: true
165
- }));
166
- (0, _configHtmlWebpackPlugins.configHtmlWebpackPlugins)(pluginsArr, {
167
- enableChunkHash: false,
168
- folder,
169
- minify: false,
170
- inject,
171
- crossorigin,
172
- hasEFC,
173
- customScriptLoadingStrategey
174
- });
165
+ })); // configHtmlWebpackPlugins(pluginsArr, {
166
+ // enableChunkHash: false,
167
+ // folder,
168
+ // minify: false,
169
+ // inject,
170
+ // crossorigin,
171
+ // hasEFC,
172
+ // customScriptLoadingStrategey,
173
+ // });
175
174
 
176
175
  if (hasEFC) {
177
176
  pluginsArr.push(new _plugins.EFCPlugin({
@@ -173,16 +173,15 @@ const getProdPlugins = (options, publicPath = '') => {
173
173
  from: `${_path.default.join(process.cwd(), context, tpFolder)}/`,
174
174
  to: `./${tpFolder}/`,
175
175
  toType: 'dir'
176
- }]));
177
- (0, _configHtmlWebpackPlugins.configHtmlWebpackPlugins)(pluginsArr, {
178
- enableChunkHash,
179
- folder,
180
- inject,
181
- minify: minifyHtmlOptions,
182
- customScriptLoadingStrategey,
183
- crossorigin,
184
- hasEFC
185
- });
176
+ }])); // configHtmlWebpackPlugins(pluginsArr, {
177
+ // enableChunkHash,
178
+ // folder,
179
+ // inject,
180
+ // minify: minifyHtmlOptions,
181
+ // customScriptLoadingStrategey,
182
+ // crossorigin,
183
+ // hasEFC
184
+ // });
186
185
 
187
186
  if (hasEFC) {
188
187
  pluginsArr.push(new _plugins.EFCPlugin({
@@ -45,5 +45,5 @@ function isVideoFileExt(ext) {
45
45
  }
46
46
 
47
47
  function isAudioFileExt(ext) {
48
- return ext === '.ogg';
48
+ return ext === '.ogg' || ext === '.mp3';
49
49
  }