npm.io
1.0.0 • Published 3 years ago

auto-track-webpack-plugin

Licence
MIT
Version
1.0.0
Deps
7
Size
19 kB
Vulns
0
Weekly
0

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.

Keywords