auto-track-webpack-plugin
v1.0.0
Published
A webpack plugin that is automatically buried for the Vue2 project
Downloads
1
Maintainers
Readme
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.