No description
Find a file
dependabot[bot] be15b5ef1c
Bump @types/node from 24.0.8 to 24.1.0 in the types group (#10)
Bumps the types group with 1 update: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


Updates `@types/node` from 24.0.8 to 24.1.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 24.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: types
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-01 13:38:24 +02:00
.github First release 2025-04-03 22:14:20 +02: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 @types/node from 22.15.3 to 24.0.8 in the types group (#8) 2025-07-01 14:52:49 +02: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 @types/node from 24.0.8 to 24.1.0 in the types group (#10) 2025-08-01 13:38:24 +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.