1 | import json from 'rollup-plugin-json'
|
2 | import { terser } from 'rollup-plugin-terser'
|
3 |
|
4 | export default [
|
5 | {
|
6 | input: 'min/index.js',
|
7 | plugins: [
|
8 | json(),
|
9 | terser()
|
10 | ],
|
11 | output: {
|
12 | format: 'umd',
|
13 | name: 'libphonenumber',
|
14 | file: 'bundle/libphonenumber-min.js',
|
15 | sourcemap: true
|
16 | }
|
17 | },
|
18 | {
|
19 | input: 'mobile/index.js',
|
20 | plugins: [
|
21 | json(),
|
22 | terser()
|
23 | ],
|
24 | output: {
|
25 | format: 'umd',
|
26 | name: 'libphonenumber',
|
27 | file: 'bundle/libphonenumber-mobile.js',
|
28 | sourcemap: true
|
29 | }
|
30 | },
|
31 | {
|
32 | input: 'max/index.js',
|
33 | plugins: [
|
34 | json(),
|
35 | terser()
|
36 | ],
|
37 | output: {
|
38 | format: 'umd',
|
39 | name: 'libphonenumber',
|
40 | file: 'bundle/libphonenumber-max.js',
|
41 | sourcemap: true
|
42 | }
|
43 | },
|
44 | {
|
45 | input: 'index.es6',
|
46 | plugins: [
|
47 | json(),
|
48 | terser()
|
49 | ],
|
50 | output: {
|
51 | format: 'umd',
|
52 | name: 'libphonenumber',
|
53 | file: 'bundle/libphonenumber-js.min.js',
|
54 | sourcemap: true
|
55 | }
|
56 | }
|
57 | ] |
\ | No newline at end of file |