forked from igvteam/igv-webapp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrollup.config.js
30 lines (27 loc) · 975 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
import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import strip from 'rollup-plugin-strip';
import commonjs from 'rollup-plugin-commonjs';
import {terser} from "rollup-plugin-terser"
const pkg = require('./package.json');
export default [
{
input: 'js/app.js',
output: [
{file: `dist/app_bundle-${pkg.version}.js`, format: 'umd', name: 'igv_webapp'},
{file: `dist/app_bundle-${pkg.version}.min.js`, format: 'umd', name: 'igv_webapp', sourcemap: true, plugins: [terser()]}
],
plugins: [
strip({
// set this to `false` if you don't want to
// remove debugger statements
debugger: true,
// defaults to `[ 'console.*', 'assert.*' ]`
functions: ['console.log', 'assert.*', 'debug'],
}),
commonjs(),
resolve(),
babel()
]
}
];