/baidu-tongji-webpack-plugin

Add `Baidu tongji` to your project.

Primary LanguageJavaScriptMIT LicenseMIT

baidu-tongji-webpack-plugin

Add baidu tongji to your project.

npm github node

Installation

npm install baidu-tongji-webpack-plugin --save-dev

Usage

// example: webpack.config.js
const BaiduTongJiWebpackPlugin = require('baidu-tongji-webpack-plugin');

module.exports = {
  plugins: [
    new HtmlWebpackPlugin(),
    new BaiduTongJiWebpackPlugin('xxxxxxxxxxxxxxxxxxxxxxx')
  ]
};