1 | import buble from 'rollup-plugin-buble'
|
2 | import { uglify } from 'rollup-plugin-uglify'
|
3 | import filesize from 'rollup-plugin-filesize'
|
4 |
|
5 | export default [
|
6 | {
|
7 | input: 'lib/index.js',
|
8 | output: {
|
9 | file: 'bss.js',
|
10 | exports: 'default',
|
11 | format: 'umd',
|
12 | name: 'b',
|
13 | sourcemap: true
|
14 | },
|
15 | plugins: process.env.TEST
|
16 | ? []
|
17 | : [
|
18 | buble(),
|
19 | filesize()
|
20 | ]
|
21 | }, {
|
22 | input: 'lib/index.js',
|
23 | output: {
|
24 | file: 'bss.min.js',
|
25 | exports: 'default',
|
26 | format: 'umd',
|
27 | name: 'b',
|
28 | sourcemap: true
|
29 | },
|
30 | plugins: [
|
31 | buble(),
|
32 | uglify({ mangle: true, compress: true }),
|
33 | filesize()
|
34 | ]
|
35 | }
|
36 | ]
|