mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-24 09:13:42 +01:00
Allow naming of tracker script. Closes #953
This commit is contained in:
parent
940a752c38
commit
429d5b480c
@ -3,10 +3,12 @@ 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/umami.js',
|
||||
file: `public/${scriptName}.js`,
|
||||
format: 'iife',
|
||||
},
|
||||
plugins: [resolve(), buble({ objectAssign: true }), terser({ compress: { evaluate: false } })],
|
||||
|
Loading…
Reference in New Issue
Block a user