-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrollup.config.js
58 lines (55 loc) · 1.26 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
55
56
57
58
/* global require */
const resolve = require("@rollup/plugin-node-resolve");
const { terser } = require("rollup-plugin-terser");
const PLUGINS = [resolve({ moduleDirectories: [".."] })];
const EXTERNAL = ["single-filez-core"];
export default [{
input: ["single-filez-core/single-file.js"],
output: [{
file: "lib/single-file.js",
format: "umd",
name: "singlefile",
plugins: [terser()]
}],
plugins: PLUGINS,
external: EXTERNAL
}, {
input: ["single-filez-core/single-file-frames.js"],
output: [{
file: "lib/single-file-frames.js",
format: "umd",
name: "singlefile",
plugins: [terser()]
}],
plugins: PLUGINS,
external: EXTERNAL
}, {
input: ["single-filez-core/single-file-bootstrap.js"],
output: [{
file: "lib/single-file-bootstrap.js",
format: "umd",
name: "singlefileBootstrap",
plugins: [terser()]
}],
plugins: PLUGINS,
external: EXTERNAL
}, {
input: ["single-filez-core/single-file-hooks-frames.js"],
output: [{
file: "lib/single-file-hooks-frames.js",
format: "iife",
plugins: [terser()]
}],
plugins: PLUGINS,
external: EXTERNAL
}, {
input: ["single-filez-core/vendor/zip/zip.min.js"],
output: [{
file: "lib/single-file-zip.min.js",
format: "es",
plugins: [terser()]
}],
context: "this",
plugins: PLUGINS,
external: EXTERNAL
}];