您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425262728293031323334353637
  1. import sass from 'rollup-plugin-sass';
  2. import { terser } from 'rollup-plugin-terser';
  3. const dev = {
  4. input: 'src/index.js',
  5. output: {
  6. name: 'Gantt',
  7. file: 'dist/xhiveframework-gantt.js',
  8. sourcemap: true,
  9. format: 'iife',
  10. },
  11. plugins: [
  12. sass({
  13. output: true,
  14. }),
  15. ],
  16. };
  17. const prod = {
  18. input: 'src/index.js',
  19. output: {
  20. name: 'Gantt',
  21. file: 'dist/xhiveframework-gantt.min.js',
  22. sourcemap: true,
  23. format: 'iife',
  24. },
  25. plugins: [
  26. sass({
  27. output: true,
  28. options: {
  29. outputStyle: 'compressed',
  30. },
  31. }),
  32. terser(),
  33. ],
  34. };
  35. export default [dev, prod];