import { terser } from 'rollup-plugin-terser';
import minifyHTML from 'rollup-plugin-minify-html-literals';
import resolve from '@rollup/plugin-node-resolve';
import typescript from 'rollup-plugin-typescript2';

export default {
  input: `src/main.ts`,
  output: { file: `dist/main.js`, format: 'iife', name: 'app' },
  plugins: [
    resolve(),
    minifyHTML(),
    typescript({ typescript: require('typescript'), clean: true }),
    terser(),
  ],
};

import { terser } from 'rollup-plugin-terser';
import minifyHTML from 'rollup-plugin-minify-html-literals';
import resolve from '@rollup/plugin-node-resolve';
import typescript from 'rollup-plugin-typescript2';

export default {
  input: `src/main.ts`,
  output: { file: `dist/main.js`, format: 'iife', name: 'app' },
  plugins: [
    resolve(),
    minifyHTML(),
    typescript({ typescript: require('typescript'), clean: true }),
    terser(),
  ],
};
