juijs-graph
Version:
SVG-based JUI chart that can be used in the browser and Node.js. Support many types of charts. (Dashboard, Map, Topology, Full 3D)
45 lines (43 loc) • 958 B
JavaScript
import {uglify} from 'rollup-plugin-uglify';
import babel from 'rollup-plugin-babel';
import pkg from './package.json';
const babelOpts = babel({
exclude: 'node_modules/**',
plugins: [ 'external-helpers' ]
});
export default [
{
input: 'src/main.js',
output: {
file: pkg.main,
format: 'cjs'
},
plugins: [ babelOpts ]
},
{
input: 'src/main.js',
output: {
file: pkg.module,
format: 'es'
},
plugins: [ babelOpts ]
},
{
input: 'src/main.js',
output: {
file: 'dist/jui-graph.js',
format: 'iife',
name: 'graph'
},
plugins: [ babelOpts ]
},
{
input: 'src/main.js',
output: {
file: 'dist/jui-graph.min.js',
format: 'iife',
name: 'graph'
},
plugins: [ babelOpts, uglify() ]
}
]