-
Notifications
You must be signed in to change notification settings - Fork 643
/
rollup.config.js
35 lines (33 loc) · 968 Bytes
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { terser } from "rollup-plugin-terser";
import copy from 'rollup-plugin-copy'
import { version } from './package.json';
import babel from '@rollup/plugin-babel';
const banner = `/*!
* jquery-timepicker v${version} - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.
* Copyright (c) 2021 Jon Thornton - https://www.jonthornton.com/jquery-timepicker/
* License: MIT
*/`;
export default {
input: 'src/jquery.timepicker.js',
output: [
{
file: 'jquery.timepicker.js',
format: 'iife',
banner: banner
},
{
file: 'jquery.timepicker.min.js',
format: 'iife',
plugins: [terser()]
}
],
plugins: [
copy({
targets: [
{ src: 'src/static/jquery.timepicker.css', dest: './' },
{ src: 'src/static/jquery.timepicker.css', dest: './', rename: 'jquery.timepicker.min.css' },
]
}),
babel({ babelHelpers: 'bundled' })
]
};