mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
20 lines
471 B
JavaScript
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 } }),
|
|
],
|
|
};
|