0.3.1 ā€¢ Published 2 years ago

hexo-partytown v0.3.1

Weekly downloads
-
License
WTFPL
Repository
github
Last release
2 years ago

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.

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago