1.0.0 • Published 6 months ago

auto-track-webpack-plugin v1.0.0

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

auto-track-webpack-plugin

For automatic buried points based on the button permissions, only supports Vue2.

Installation

NPM

npm i -D auto-track-webpack-plugin

Import

ES6/TypeScript

import { AutoTrackPlugin } from 'auto-track-webpack-plugin';

CJS

const { AutoTrackPlugin } = require('auto-track-webpack-plugin');

Usage

vue.config.js

module.exports = defineConfig({
  configureWebpack: {
    plugins: [new AutoTrackPlugin({ buriedPoint: 'this.$common.buriedFun' })]
  }
})

Options

buriedPoint

The buried point function will insert the inside of the click event based on the button permissions.