No description
  • TypeScript 87.3%
  • JavaScript 12.7%
Find a file
dependabot[bot] 1302ae6ec1
Bump vite from 8.0.1 to 8.0.3 (#38)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 8.0.1 to 8.0.3.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@8.0.3/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.0.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-01 17:42:56 +02:00
.github Bump actions/checkout from 5 to 6 (#26) 2026-01-12 20:36:47 +01:00
src First release 2025-04-03 22:14:20 +02:00
.gitignore First release 2025-04-03 22:14:20 +02:00
eslint.config.js First release 2025-04-03 22:14:20 +02:00
LICENSE First release 2025-04-03 22:14:20 +02:00
package.json Bump vite from 7.3.1 to 8.0.1 (#35) 2026-03-21 14:38:41 +01:00
README.md Clarify conditional apply 2025-04-03 22:20:17 +02:00
tsconfig.json First release 2025-04-03 22:14:20 +02:00
vite.config.ts First release 2025-04-03 22:14:20 +02:00
yarn.lock Bump vite from 8.0.1 to 8.0.3 (#38) 2026-04-01 17:42:56 +02:00

vite-plugin-fathom

A small vite plugin to inject the fathom script on your html page.

Usage

Add the plugin to your vite config. The fathom site id will be loaded from the VITE_FATHOM_ID environment variable by default.

// vite.config.js
import { defineConfig } from "vite";
import vitePluginFathom from "vite-plugin-fathom"

export default defineConfig({
  plugins: [vitePluginFathom()],
});

If your want, you can specify the site ID and options:

// vite.config.js
import { defineConfig } from "vite";
import vitePluginFathom from "vite-plugin-fathom"

export default defineConfig({
  plugins: [vitePluginFathom("ABCDEF", { forceEU: true })],
});

If the site id isn't passed as an argument or the environment variable is not set, the script will not be added to the head.

Options

Option Type Default
forceEU boolean false
spa boolean or string "auto"
honorDNT boolean false
autoTrack boolean false
ignoreCanonical boolean false

For an explanation of these settings, see fathom's documentation.