forked from ecsyjs/ecsy-three
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rollup.config.js
45 lines (44 loc) · 935 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
36
37
38
39
40
41
42
43
44
45
import json from "rollup-plugin-json";
import { terser } from "rollup-plugin-terser";
import autoExternal from 'rollup-plugin-auto-external';
import resolve from 'rollup-plugin-node-resolve';
export default [
{
external: ['three', 'ecsy'],
input: "src/index.js",
plugins: [
json({ exclude: ["node_modules/**"] }),
// resolve()
],
output: [
{
format: "umd",
name: "ECSYTHREE",
noConflict: true,
file: "build/ecsy-three.js",
indent: "\t"
},
{
format: "es",
file: "build/ecsy-three.module.js",
indent: "\t"
}
]
},
{
input: "src/index.js",
plugins: [
json({ exclude: ["node_modules/**"] }),
terser()
],
output: [
{
format: "umd",
name: "ECSYTHREE",
noConflict: true,
file: "build/ecsy-three.min.js",
indent: "\t"
}
]
}
];