2020-05-30 13:44:20 +00:00
|
|
|
'use strict'
|
|
|
|
|
2020-05-30 12:03:21 +00:00
|
|
|
const { babel } = require('@rollup/plugin-babel')
|
2018-03-17 17:07:55 +00:00
|
|
|
|
2020-05-30 13:44:20 +00:00
|
|
|
const pkg = require('../../package')
|
2018-03-17 17:07:55 +00:00
|
|
|
const year = new Date().getFullYear()
|
2020-05-30 12:03:21 +00:00
|
|
|
const banner = `/*!
|
2018-03-17 17:07:55 +00:00
|
|
|
* 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)
|
2020-05-30 12:03:21 +00:00
|
|
|
*/`
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
input: 'build/js/AdminLTE.js',
|
|
|
|
output: {
|
|
|
|
banner,
|
|
|
|
file: 'dist/js/adminlte.js',
|
2018-03-17 17:07:55 +00:00
|
|
|
format: 'umd',
|
2020-05-30 12:03:21 +00:00
|
|
|
globals: {
|
|
|
|
jquery: 'jQuery'
|
|
|
|
},
|
|
|
|
name: 'adminlte'
|
2018-03-17 17:07:55 +00:00
|
|
|
},
|
2020-06-02 13:23:22 +00:00
|
|
|
external: ['jquery'],
|
2018-03-17 17:07:55 +00:00
|
|
|
plugins: [
|
|
|
|
babel({
|
2019-07-11 12:42:43 +00:00
|
|
|
exclude: 'node_modules/**',
|
2020-05-30 12:03:21 +00:00
|
|
|
// Include the helpers in the bundle, at most one copy of each
|
|
|
|
babelHelpers: 'bundled'
|
2018-03-17 17:07:55 +00:00
|
|
|
})
|
|
|
|
]
|
|
|
|
}
|