1.0.4 • Published 9 months ago

@hawk.so/vite-plugin v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Hawk Vite Plugin

Vite plugin for sending sourcemaps to Hawk.

Install

yarn add @hawk.so/vite-plugin -D

Connect

Include the plugin to the plugins list of vite.config file

import hawkVitePlugin from '@hawk.so/vite-plugin';

export default defineConfig({
  plugins: [
    ...,
    hawkVitePlugin({
      token: '' // Your project's Integration Token
    })
  ]
})

Plugin options

nametyperequireddescription
tokenstringrequiredYour project's Integration Token
releasestring/numberoptionalUnique identifier of the release. Used for source map consuming (see below)
removeSourceMapsbooleanoptionalShows if the plugin should remove emitted source map files. Default is true
collectorEndpointstringoptionalSourcemaps collector endpoint overwrite

After plugin finish its work, it will export release information to the global scope. You can access release identifier via window.HAWK_RELEASE in browser and global.HAWK_RELEASE in NodeJS and pass this data to the JavaScript Catcher on initialization.

1.0.4-rc.1

9 months ago

1.0.4

9 months ago

1.0.3

10 months ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago