-
Notifications
You must be signed in to change notification settings - Fork 44
/
rollup.config.js
54 lines (53 loc) · 1.76 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { terser } from "rollup-plugin-terser";
export default [
{
input: "./src/js/main.js",
output: [
{ file: "./docs/static/kutty.js", format: "iife", name: "bundle", plugins: [terser()] },
{ file: "./dist/kutty.js", format: "iife", name: "bundle" },
{ file: "./dist/kutty.min.js", format: "iife", name: "bundle", plugins: [terser()] },
],
},
{
input: "./src/js/alpinejs.js",
output: [
{ file: "./dist/alpinejs.js", format: "iife", name: "bundle" },
{ file: "./dist/alpinejs.min.js", format: "iife", name: "bundle", plugins: [terser()] },
],
},
{
input: "./src/js/components/collapse.js",
output: [
{ file: "./dist/collapse.js", format: "iife", name: "bundle" },
{ file: "./dist/collapse.min.js", format: "iife", name: "bundle", plugins: [terser()] },
],
},
{
input: "./src/js/components/dropdown.js",
output: [
{ file: "./dist/dropdown.js", format: "iife", name: "bundle" },
{ file: "./dist/dropdown.min.js", format: "iife", name: "bundle", plugins: [terser()] },
],
},
{
input: "./src/js/components/drawer.js",
output: [
{ file: "./dist/drawer.js", format: "iife", name: "bundle" },
{ file: "./dist/drawer.min.js", format: "iife", name: "bundle", plugins: [terser()] },
],
},
{
input: "./src/js/components/dialog.js",
output: [
{ file: "./dist/dialog.js", format: "iife", name: "bundle" },
{ file: "./dist/dialog.min.js", format: "iife", name: "bundle", plugins: [terser()] },
],
},
{
input: "./src/js/components/tooltip.js",
output: [
{ file: "./dist/tooltip.js", format: "iife", name: "bundle" },
{ file: "./dist/tooltip.min.js", format: "iife", name: "bundle", plugins: [terser()] },
],
},
];