mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Initial commit.
This commit is contained in:
commit
f7f0c05e12
27 changed files with 13028 additions and 0 deletions
24
rollup.config.js
Normal file
24
rollup.config.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import 'dotenv/config';
|
||||
import { terser } from 'rollup-plugin-terser';
|
||||
import replace from 'rollup-plugin-replace';
|
||||
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
||||
|
||||
export default {
|
||||
input: 'scripts/umami/index.js',
|
||||
output: {
|
||||
file: 'public/umami.js',
|
||||
format: 'iife',
|
||||
globals: {
|
||||
'detect-browser': 'detectBrowser',
|
||||
'whatwg-fetch': 'fetch',
|
||||
},
|
||||
plugins: [terser()],
|
||||
},
|
||||
context: 'window',
|
||||
plugins: [
|
||||
nodeResolve(),
|
||||
replace({
|
||||
'process.env.UMAMI_URL': JSON.stringify(process.env.UMAMI_URL),
|
||||
}),
|
||||
],
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue