AdminLTE/build/config/rollup.config.js

33 lines
729 B
JavaScript
Raw Normal View History

2020-05-30 15:44:20 +02:00
'use strict'
2020-05-30 14:03:21 +02:00
const { babel } = require('@rollup/plugin-babel')
2018-03-17 18:07:55 +01:00
2020-05-30 15:44:20 +02:00
const pkg = require('../../package')
2018-03-17 18:07:55 +01:00
const year = new Date().getFullYear()
2020-05-30 14:03:21 +02:00
const banner = `/*!
2018-03-17 18:07:55 +01:00
* AdminLTE v${pkg.version} (${pkg.homepage})
* Copyright 2014-${year} ${pkg.author}
2019-10-23 09:51:31 +02:00
* Licensed under MIT (https://github.com/ColorlibHQ/AdminLTE/blob/master/LICENSE)
2020-05-30 14:03:21 +02:00
*/`
module.exports = {
input: 'build/js/AdminLTE.js',
output: {
banner,
file: 'dist/js/adminlte.js',
2018-03-17 18:07:55 +01:00
format: 'umd',
2020-05-30 14:03:21 +02:00
globals: {
jquery: 'jQuery'
},
name: 'adminlte'
2018-03-17 18:07:55 +01:00
},
2020-06-02 15:23:22 +02:00
external: ['jquery'],
2018-03-17 18:07:55 +01:00
plugins: [
babel({
exclude: 'node_modules/**',
2020-05-30 14:03:21 +02:00
// Include the helpers in the bundle, at most one copy of each
babelHelpers: 'bundled'
2018-03-17 18:07:55 +01:00
})
]
}