rollup.config.js 580 B

12345678910111213141516171819202122232425262728
  1. import babel from 'rollup-plugin-babel'
  2. const pkg = require('./package')
  3. const year = new Date().getFullYear()
  4. const globals = {
  5. jquery: 'jQuery'
  6. }
  7. export default {
  8. input : 'build/js/AdminLTE.js',
  9. output : {
  10. banner: `/*!
  11. * AdminLTE v${pkg.version} (${pkg.homepage})
  12. * Copyright 2014-${year} ${pkg.author}
  13. * Licensed under MIT (https://github.com/almasaeed2010/AdminLTE/blob/master/LICENSE)
  14. */`,
  15. file : 'dist/js/adminlte.js',
  16. format: 'umd',
  17. globals,
  18. name : 'adminlte'
  19. },
  20. plugins: [
  21. babel({
  22. exclude: 'node_modules/**'
  23. })
  24. ]
  25. }