Socket
Book a DemoInstallSign in
Socket

hexo-partytown

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-partytown

Partytown Integration for Hexo

latest
Source
npmnpm
Version
0.3.1
Version published
Maintainers
1
Created
Source

hexo-partytown

🎉 Partytown Integration for Hexo

Install

pnpm add hexo-partytown # pnpm
yarn add hexo-partytown # yarn
npm i hexo-partytown # npm

Config

type HexoPartytownConfig = {
  /**
   * Script matching fields
   * @remarks If using an array, run as `new RegExp(arr[0], arr[1])`
   * @defaultValue `[['^https://.+.min.js$', 'i']]`
   */
  match: (string | [string, string])[]
  /**
   * Script matching range
   * @defaultValue `html`
   */
  range: string
  /**
   * Partytown Snippet
   * @defaultValue `inline`
   */
  snippet: string | false
  /**
   * Copy Library Files
   * @defaultValue `true`
   */
  copylib: boolean
  /**
   * Partytown Configuration
   * @see {@link https://partytown.builder.io/configuration}
   */
  config?: PartytownConfig
}

Write into _config.yml to override default value.

partytown:
  config:
    debug: true
    forward:
    - dataLayer.push

License

Licensed under the WTFPL, See the COPYING file for more details.

Keywords

hexo

FAQs

Package last updated on 11 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts