-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrollup.config.js
More file actions
32 lines (32 loc) · 839 Bytes
/
rollup.config.js
File metadata and controls
32 lines (32 loc) · 839 Bytes
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
import concatFiles from "./index.js";
export default [
{
input: "testUtils/core.js",
output: {
file: "dist/test-1.js",
format: "iife",
sourceMap: true
},
plugins: [
concatFiles({
files: {
"./dist/test-1.js": {
banner:["banner-1"],
concatFiles:['testUtils/init.js', 'dist/test-1.js'],
footer:["footer-1"]
},
"dist/dist2/test-2.js": {
banner:["banner-2"],
concatFiles:['testUtils/core.js', 'testUtils/init.js'],
footer:["footer-2"]
},
"dist/dist2/dist3/test-3.js": {
banner:["banner-3", "banner-appended"],
concatFiles:['dist/core.js'],
footer:["footer-3 "]
},
}
})
]
}
];