rollup.config.js 714 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import resolve from '@rollup/plugin-node-resolve';
  2. const plugins = [
  3. resolve(),
  4. ];
  5. module.exports = [
  6. {
  7. input: 'js/Datepicker.js',
  8. output: {
  9. file: 'dist/js/datepicker.js',
  10. format: 'iife',
  11. name: 'Datepicker',
  12. },
  13. plugins,
  14. },
  15. {
  16. input: 'js/datepicker-full.js',
  17. output: {
  18. file: 'dist/js/datepicker-full.js',
  19. format: 'iife',
  20. },
  21. plugins,
  22. },
  23. {
  24. input: 'js/lib/date.js',
  25. output: {
  26. file: 'test/_utils/date.js',
  27. name: 'dateUtils',
  28. format: 'iife'
  29. },
  30. plugins,
  31. },
  32. {
  33. input: 'js/lib/dom.js',
  34. output: {
  35. file: 'test/_utils/dom.js',
  36. name: 'domUtils',
  37. format: 'iife'
  38. },
  39. plugins,
  40. },
  41. ];