1
0
mirror of https://github.com/kremalicious/umami.git synced 2024-12-24 02:06:19 +01:00
umami/rollup.tracker.config.js

20 lines
471 B
JavaScript
Raw Normal View History

2020-07-17 10:03:38 +02:00
import 'dotenv/config';
2020-07-18 04:15:29 +02:00
import buble from '@rollup/plugin-buble';
2020-08-23 22:34:00 +02:00
import replace from '@rollup/plugin-replace';
2020-07-25 02:00:56 +02:00
import resolve from '@rollup/plugin-node-resolve';
2020-07-18 04:15:29 +02:00
import { terser } from 'rollup-plugin-terser';
2020-07-17 10:03:38 +02:00
export default {
input: 'tracker/index.js',
2020-07-17 10:03:38 +02:00
output: {
file: 'public/umami.js',
format: 'iife',
},
2020-08-23 22:34:00 +02:00
plugins: [
replace({ __DNT__: !!process.env.ENABLE_DNT }),
resolve(),
buble(),
terser({ compress: { evaluate: false } }),
],
2020-07-17 10:03:38 +02:00
};