Source

adminjs/src/core-scripts.interface.ts

  1. /**
  2. * @memberof Assets
  3. * @alias CoreScripts
  4. *
  5. * Optional mapping of core AdminJS browser scripts:
  6. * - app.bundle.js
  7. * - components.bundle.js
  8. * - design-system.bundle.js
  9. * - global.bundle.js
  10. *
  11. * You may want to use it if you'd like to version assets for caching. This
  12. * will only work if you have also configured `assetsCDN` in AdminJS options.
  13. *
  14. * Example:
  15. * ```
  16. * {
  17. * 'app.bundle.js': 'app.bundle.123456.js',
  18. * 'components.bundle.js': 'components.bundle.123456.js',
  19. * 'design-system.bundle.js': 'design-system.bundle.123456.js',
  20. * 'global.bundle.js': 'global.bundle.123456.js',
  21. * }
  22. * ```
  23. */
  24. export interface CoreScripts {
  25. /**
  26. * App Bundle
  27. */
  28. 'app.bundle.js': string;
  29. /**
  30. * Custom Components
  31. */
  32. 'components.bundle.js': string;
  33. /**
  34. * Design System Bundle
  35. */
  36. 'design-system.bundle.js': string;
  37. /**
  38. * Global bundle
  39. */
  40. 'global.bundle.js': string;
  41. }