1
0
mirror of https://github.com/kremalicious/umami.git synced 2024-12-22 01:03:39 +01:00
umami/rollup.tracker.config.js
2020-08-23 13:34:00 -07:00

20 lines
471 B
JavaScript

import 'dotenv/config';
import buble from '@rollup/plugin-buble';
import replace from '@rollup/plugin-replace';
import resolve from '@rollup/plugin-node-resolve';
import { terser } from 'rollup-plugin-terser';
export default {
input: 'tracker/index.js',
output: {
file: 'public/umami.js',
format: 'iife',
},
plugins: [
replace({ __DNT__: !!process.env.ENABLE_DNT }),
resolve(),
buble(),
terser({ compress: { evaluate: false } }),
],
};