mirror of https://github.com/ColorlibHQ/AdminLTE
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
729 B
33 lines
729 B
'use strict'
|
|
|
|
const { babel } = require('@rollup/plugin-babel')
|
|
|
|
const pkg = require('../../package')
|
|
const year = new Date().getFullYear()
|
|
const banner = `/*!
|
|
* AdminLTE v${pkg.version} (${pkg.homepage})
|
|
* Copyright 2014-${year} ${pkg.author}
|
|
* Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE)
|
|
*/`
|
|
|
|
module.exports = {
|
|
input: 'build/js/AdminLTE.js',
|
|
output: {
|
|
banner,
|
|
file: 'dist/js/adminlte.js',
|
|
format: 'umd',
|
|
globals: {
|
|
jquery: 'jQuery'
|
|
},
|
|
name: 'adminlte'
|
|
},
|
|
external: ['jquery'],
|
|
plugins: [
|
|
babel({
|
|
exclude: 'node_modules/**',
|
|
// Include the helpers in the bundle, at most one copy of each
|
|
babelHelpers: 'bundled'
|
|
})
|
|
]
|
|
}
|