@gravity-ui/app-builder 0.14.0-beta.3 → 0.14.0-beta.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.
@@ -393,6 +393,12 @@ function getCssLoaders({ isEnvDevelopment, isEnvProduction, config, isSsr }, add
393
393
  loaders.unshift({
394
394
  loader: require.resolve('css-loader'),
395
395
  options: {
396
+ url: {
397
+ filter: (url) => {
398
+ // ignore data uri
399
+ return !url.startsWith('data:');
400
+ },
401
+ },
396
402
  sourceMap: !config.disableSourceMapGeneration,
397
403
  importLoaders,
398
404
  modules: {
@@ -404,17 +410,11 @@ function getCssLoaders({ isEnvDevelopment, isEnvProduction, config, isSsr }, add
404
410
  },
405
411
  });
406
412
  if (isEnvProduction) {
407
- loaders.unshift({
408
- loader: mini_css_extract_plugin_1.default.loader,
409
- options: { emit: isSsr ? false : undefined },
410
- });
413
+ loaders.unshift({ loader: mini_css_extract_plugin_1.default.loader, options: { emit: !isSsr } });
411
414
  }
412
415
  if (isEnvDevelopment) {
413
416
  if (isSsr || config.ssr) {
414
- loaders.unshift({
415
- loader: mini_css_extract_plugin_1.default.loader,
416
- options: { emit: isSsr ? false : undefined },
417
- });
417
+ loaders.unshift({ loader: mini_css_extract_plugin_1.default.loader, options: { emit: !isSsr } });
418
418
  }
419
419
  else {
420
420
  loaders.unshift({
@@ -461,7 +461,7 @@ function createIconsRule({ isEnvProduction, config, isSsr }, jsLoader) {
461
461
  generator: {
462
462
  filename: 'assets/images/[name].[contenthash:8][ext]',
463
463
  publicPath: isEnvProduction ? '../' : undefined,
464
- emit: isSsr ? false : undefined,
464
+ emit: !isSsr,
465
465
  },
466
466
  }),
467
467
  };
@@ -478,7 +478,7 @@ function createAssetsRules({ isEnvProduction, config, isSsr }) {
478
478
  },
479
479
  generator: {
480
480
  filename: 'assets/images/[name].[contenthash:8][ext]',
481
- emit: isSsr ? false : undefined,
481
+ emit: !isSsr,
482
482
  },
483
483
  };
484
484
  const fontsRule = {
@@ -492,7 +492,7 @@ function createAssetsRules({ isEnvProduction, config, isSsr }) {
492
492
  },
493
493
  generator: {
494
494
  filename: 'assets/fonts/[name].[contenthash:8][ext]',
495
- emit: isSsr ? false : undefined,
495
+ emit: !isSsr,
496
496
  },
497
497
  };
498
498
  const rules = [imagesRule, fontsRule];
@@ -512,7 +512,7 @@ function createAssetsRules({ isEnvProduction, config, isSsr }) {
512
512
  generator: {
513
513
  filename: 'assets/images/[name].[contenthash:8][ext]',
514
514
  publicPath: '../',
515
- emit: isSsr ? false : undefined,
515
+ emit: !isSsr,
516
516
  },
517
517
  }, {
518
518
  test: /\.(ttf|eot|woff2?)$/,
@@ -527,7 +527,7 @@ function createAssetsRules({ isEnvProduction, config, isSsr }) {
527
527
  generator: {
528
528
  filename: 'assets/fonts/[name].[contenthash:8][ext]',
529
529
  publicPath: '../',
530
- emit: isSsr ? false : undefined,
530
+ emit: !isSsr,
531
531
  },
532
532
  });
533
533
  }
@@ -539,7 +539,7 @@ function createFallbackRules({ isEnvProduction, isSsr }) {
539
539
  type: 'asset/resource',
540
540
  generator: {
541
541
  filename: 'assets/[name].[contenthash:8][ext]',
542
- emit: isSsr ? false : undefined,
542
+ emit: !isSsr,
543
543
  },
544
544
  exclude: [/\.[jt]sx?$/, /\.json$/, /\.[cm]js$/, /\.ejs$/],
545
545
  },
@@ -554,7 +554,7 @@ function createFallbackRules({ isEnvProduction, isSsr }) {
554
554
  generator: {
555
555
  filename: 'assets/[name].[contenthash:8][ext]',
556
556
  publicPath: '../',
557
- emit: isSsr ? false : undefined,
557
+ emit: !isSsr,
558
558
  },
559
559
  });
560
560
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/app-builder",
3
- "version": "0.14.0-beta.3",
3
+ "version": "0.14.0-beta.4",
4
4
  "description": "Develop and build your React client-server projects, powered by typescript and webpack",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",