mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
20 lines
475 B
JavaScript
20 lines
475 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/snippet.js',
|
|
output: {
|
|
file: 'public/snippet.js',
|
|
format: 'iife',
|
|
},
|
|
plugins: [
|
|
replace({ __DNT__: !!process.env.ENABLE_DNT }),
|
|
resolve(),
|
|
buble(),
|
|
terser({ compress: { evaluate: false } }),
|
|
],
|
|
};
|