umami/rollup.tracker.config.js
2022-02-15 21:03:09 -08:00

16 lines
450 B
JavaScript

import 'dotenv/config';
import buble from '@rollup/plugin-buble';
import resolve from '@rollup/plugin-node-resolve';
import { terser } from 'rollup-plugin-terser';
const scriptName = process.env.TRACKER_SCRIPT_NAME || 'umami';
export default {
input: 'tracker/index.js',
output: {
file: `public/${scriptName}.js`,
format: 'iife',
},
plugins: [resolve(), buble({ objectAssign: true }), terser({ compress: { evaluate: false } })],
};