Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Changed script name to 'swetrix' and removed dist/ from gitignore

Blue Mouse592871440534
diff --git a/.gitignore b/.gitignore
index 53c804d9d..ff8e96f83 100644
--- a/.gitignore
+++ b/.gitignore
@@ -80,7 +80,7 @@ typings/
# Nuxt.js build / generate output
.nuxt
-dist
+# dist
# Gatsby files
.cache/
diff --git a/rollup.config.js b/rollup.config.js
index 0a57b71e2..1a1b7d3b6 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -9,7 +9,7 @@ export default [
{
input: 'src/index.ts',
output: [
- { file: pkg.browser, format: 'umd', name: 'analytics' },
+ { file: pkg.browser, format: 'umd', name: 'swetrix' },
{ file: pkg.main, format: 'cjs' },
{ file: pkg.module, format: 'es' },
],
@@ -20,7 +20,7 @@ export default [
{
input: 'src/index.ts',
output: [
- { file: 'dist/analytics.umd.min.js', format: 'umd', name: 'analytics' },
+ { file: 'dist/swetrix.js', format: 'umd', name: 'swetrix' },
],
plugins: [
typescript(), resolve(), commonjs(), uglify(),