Skip to content

lbczblll/auto-track-webpack-plugin

Repository files navigation

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.

Examples

This is a page that needs to be buried. And use the plugin.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published