forked from syt123450/giojs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollup.config.js
54 lines (35 loc) · 866 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
46
47
48
49
50
51
52
53
54
/**
* Created by ss on 2018/1/7.
*/
export default [
{
input: 'src/Gio.js',
output: [
{
format: 'iife',
file: 'build/gio.js',
name: "GIO"
}
]
}, {
input: 'src/Gio.js',
output: [
{
format: 'umd',
file: 'build/gio.module.js',
name: "GIO"
}
],
intro: 'global.THREE = require("three");'
}, {
input: 'src/Gio.js',
output: [
{
file: 'build/gio.react.js',
name: "GIO",
format: 'es'
}
],
intro: 'import * as THREE from "three";\n import Stats from "stats.js";\n window.THREE = THREE;'
}
];