gogoclient 1.2.2 → 1.3.0

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": "gogoclient",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "Client side starter",
5
5
  "repository": {
6
6
  "type": "git",
@@ -97,6 +97,7 @@
97
97
  "@coko/storybook": "^2.0.0",
98
98
  "@faker-js/faker": "^8.0.2",
99
99
  "fontsource-advent-pro": "^4.0.0",
100
+ "husky": "^9.1.7",
100
101
  "nodemon": "^2.0.7",
101
102
  "standard-version": "^9.2.0"
102
103
  },
@@ -216,15 +216,19 @@ const webpackConfig = {
216
216
  entry: entryFilePath,
217
217
  name: 'client',
218
218
  mode,
219
- // TO DO -- browserlist?
219
+ // TO D0 -- browserlist?
220
220
  target: 'web',
221
221
 
222
222
  // TO DO -- bundle analyzer
223
+ // TO DO -- code splitting
224
+ // TO DO -- hash is deprecated
223
225
  output: {
224
226
  chunkFilename: isEnvProduction
225
- ? 'js/[name].[contenthash:8].chunk.js'
227
+ ? 'js/[name].[hash:8].chunk.js'
226
228
  : isEnvDevelopment && 'js/[name].chunk.js',
227
- filename: isEnvProduction ? 'js/[name].[contenthash:8].js' : 'js/[name].js',
229
+ filename: isEnvProduction
230
+ ? 'js/[name].[hash:8].js'
231
+ : isEnvDevelopment && 'js/bundle.js',
228
232
  // There are also additional JS chunk files if you use code splitting.
229
233
  // path: contentBase,
230
234
  path: buildFolderPath,
@@ -389,58 +393,6 @@ const webpackConfig = {
389
393
  // new webpack.optimize.OccurrenceOrderPlugin(),
390
394
  ].filter(Boolean),
391
395
 
392
- optimization: {
393
- splitChunks: {
394
- chunks: 'all',
395
- minSize: 20000,
396
- maxSize: 244000,
397
- minChunks: 1,
398
- maxAsyncRequests: 30,
399
- maxInitialRequests: 30,
400
- automaticNameDelimiter: '~',
401
- enforceSizeThreshold: 50000,
402
- cacheGroups: {
403
- defaultVendors: {
404
- test: /[\\/]node_modules[\\/]/,
405
- priority: -10,
406
- reuseExistingChunk: true,
407
- },
408
- default: {
409
- minChunks: 2,
410
- priority: -20,
411
- reuseExistingChunk: true,
412
- },
413
- // Common vendor chunks for better caching
414
- reactVendor: {
415
- test: /[\\/]node_modules[\\/](react|react-dom|react-router|react-router-dom)[\\/]/,
416
- name: 'vendor-react',
417
- chunks: 'all',
418
- priority: 0,
419
- },
420
- antdVendor: {
421
- test: /[\\/]node_modules[\\/](antd|@ant-design)[\\/]/,
422
- name: 'vendor-antd',
423
- chunks: 'all',
424
- priority: 0,
425
- },
426
- apolloVendor: {
427
- test: /[\\/]node_modules[\\/](@apollo|graphql|graphql-ws)[\\/]/,
428
- name: 'vendor-apollo',
429
- chunks: 'all',
430
- priority: 0,
431
- },
432
- },
433
- },
434
- ...(isEnvProduction
435
- ? {
436
- runtimeChunk: 'single',
437
- moduleIds: 'deterministic',
438
- usedExports: true,
439
- minimize: true,
440
- }
441
- : {}),
442
- },
443
-
444
396
  // TO DELETE
445
397
  // resolve: {
446
398
  // alias: {