-
Notifications
You must be signed in to change notification settings - Fork 4
/
rollup.config.js
62 lines (61 loc) · 1.53 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
59
60
61
62
import { version } from './package.json';
import babel from 'rollup-plugin-babel';
import { terser } from 'rollup-plugin-terser';
export default [
{
input: './build/main.js',
treeshake: false,
output: {
file: './dist/androme.js',
name: 'androme',
format: 'umd',
banner: `/* androme ${version}\n https://github.com/anpham6/androme */\n`
}
},
{
input: './build/android/main.js',
treeshake: true,
output: {
file: './dist/android.framework.js',
name: 'android',
format: 'iife',
banner: `/* androme ${version}\n https://github.com/anpham6/androme */\n`
}
},
{
input: './build/main.js',
treeshake: false,
output: {
file: './dist/androme.min.js',
name: 'androme',
format: 'umd'
},
plugins: [
babel(),
terser({
compress: {
pure_getters: true,
unsafe: true
}
})
]
},
{
input: './build/android/main.js',
treeshake: true,
output: {
file: './dist/android.framework.min.js',
name: 'android',
format: 'iife'
},
plugins: [
babel(),
terser({
compress: {
pure_getters: true,
unsafe: true
}
})
]
}
];