You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
511 B
21 lines
511 B
4 years ago
|
import typescript from 'rollup-plugin-typescript2';
|
||
|
import commonjs from 'rollup-plugin-commonjs';
|
||
|
import nodeResolve from 'rollup-plugin-node-resolve';
|
||
|
import { terser } from 'rollup-plugin-terser';
|
||
|
import json from '@rollup/plugin-json';
|
||
|
|
||
|
const dev = process.env.ROLLUP_WATCH;
|
||
|
|
||
|
const plugins = [nodeResolve({}), commonjs(), typescript(), json(), !dev && terser()];
|
||
|
|
||
|
export default [
|
||
|
{
|
||
|
input: 'src/plex-meets-homeassistant.ts',
|
||
|
output: {
|
||
|
dir: 'dist',
|
||
|
format: 'es'
|
||
|
},
|
||
|
plugins: [...plugins]
|
||
|
}
|
||
|
];
|