auto-track-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

/auto-track-webpack-plugin/

    Package Sidebar

    Install

    npm i auto-track-webpack-plugin

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    19.9 kB

    Total Files

    14

    Last publish

    Collaborators

    • lbccccc