mirror of
https://github.com/kremalicious/umami.git
synced 2024-10-31 23:35:32 +01:00
16 lines
450 B
JavaScript
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 } })],
|
|
};
|