rollup.config.dev.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. export default [{
  2. input: ["lib/single-file/index.js"],
  3. output: [{
  4. file: "dist/single-file.js",
  5. format: "umd",
  6. name: "singlefile",
  7. plugins: []
  8. }]
  9. }, {
  10. input: ["lib/single-file/single-file-frames.js"],
  11. output: [{
  12. file: "dist/single-file-frames.js",
  13. format: "umd",
  14. name: "singlefile",
  15. plugins: []
  16. }]
  17. }, {
  18. input: ["lib/single-file/single-file-bootstrap.js"],
  19. output: [{
  20. file: "dist/single-file-bootstrap.js",
  21. format: "umd",
  22. name: "singlefileBootstrap",
  23. plugins: []
  24. }]
  25. }, {
  26. input: ["common/ui/content/content-infobar.js"],
  27. output: [{
  28. file: "dist/infobar.js",
  29. format: "umd",
  30. name: "infobar",
  31. plugins: []
  32. }]
  33. }, {
  34. input: ["extension/core/content/content-bootstrap.js"],
  35. output: [{
  36. file: "dist/extension-bootstrap.js",
  37. format: "iife",
  38. plugins: []
  39. }]
  40. }, {
  41. input: ["extension/core/content/content-frames.js"],
  42. output: [{
  43. file: "dist/extension-frames.js",
  44. format: "iife",
  45. plugins: []
  46. }]
  47. }, {
  48. input: ["extension/index.js"],
  49. output: [{
  50. file: "dist/extension-core.js",
  51. format: "umd",
  52. name: "extension",
  53. plugins: []
  54. }]
  55. }, {
  56. input: ["extension/core/content/content.js"],
  57. output: [{
  58. file: "dist/extension.js",
  59. format: "iife",
  60. plugins: []
  61. }]
  62. }, {
  63. input: ["lib/single-file/processors/hooks/content/content-hooks-web.js"],
  64. output: [{
  65. file: "dist/web/hooks/hooks-web.js",
  66. format: "iife",
  67. plugins: []
  68. }]
  69. }, {
  70. input: ["lib/single-file/processors/hooks/content/content-hooks-frames-web.js"],
  71. output: [{
  72. file: "dist/web/hooks/hooks-frames-web.js",
  73. format: "iife",
  74. plugins: []
  75. }]
  76. }, {
  77. input: ["common/ui/content/content-infobar-web.js"],
  78. output: [{
  79. file: "dist/web/infobar-web.js",
  80. format: "iife",
  81. plugins: []
  82. }]
  83. }, {
  84. input: ["extension/ui/content/content-ui-editor-init-web.js"],
  85. output: [{
  86. file: "dist/web/editor/editor-init-web.js",
  87. format: "iife",
  88. plugins: []
  89. }]
  90. }, {
  91. input: ["extension/ui/content/content-ui-editor-web.js"],
  92. output: [{
  93. file: "dist/web/editor/editor-web.js",
  94. format: "iife",
  95. plugins: []
  96. }]
  97. }, {
  98. input: ["extension/ui/content/content-ui-editor-helper-web"],
  99. output: [{
  100. file: "dist/web/editor/editor-helper-web.js",
  101. format: "umd",
  102. name: "singlefile",
  103. plugins: []
  104. }]
  105. }, {
  106. input: ["extension/lib/single-file/browser-polyfill/chrome-browser-polyfill.js"],
  107. output: [{
  108. file: "dist/chrome-browser-polyfill.js",
  109. format: "iife",
  110. plugins: []
  111. }]
  112. }, {
  113. input: ["extension/core/bg/messages.js"],
  114. output: [{
  115. file: "dist/extension-background.js",
  116. format: "iife",
  117. plugins: []
  118. }]
  119. }, {
  120. input: ["extension/lib/single-file/background.js"],
  121. output: [{
  122. file: "dist/single-file-background.js",
  123. format: "iife",
  124. plugins: []
  125. }]
  126. }];