AdminLTE/build/config/rollup.config.js

32 lines
705 B
JavaScript
Raw Normal View History

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
},
plugins: [
babel({
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
})
]
}