AdminLTE/build/config/rollup.config.js

30 lines
610 B
JavaScript
Raw Normal View History

2018-03-17 17:07:55 +00:00
import babel from 'rollup-plugin-babel'
const pkg = require('../../package')
2018-03-17 17:07:55 +00:00
const year = new Date().getFullYear()
const globals = {
jquery: 'jQuery'
}
export default {
input : 'build/js/AdminLTE.js',
output : {
banner: `/*!
* AdminLTE v${pkg.version} (${pkg.homepage})
* Copyright 2014-${year} ${pkg.author}
2019-10-23 07:51:31 +00:00
* Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE)
2018-03-17 17:07:55 +00:00
*/`,
file : 'dist/js/adminlte.js',
format: 'umd',
globals,
name : 'adminlte'
},
plugins: [
babel({
exclude: 'node_modules/**',
externalHelpers: true
2018-03-17 17:07:55 +00:00
})
]
}