1.0.4 • Published 7 years ago

webpack-bdwm-addmonitor v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

介绍

本插件是像bdwm app 插入监控代码的插件

使用

1、安装

  $ npm install --save-dev webpack-bdwm-addmonitor

2、配置

配置指定文件:
  plugins: [
    new HtmlWebpackPlugin({
        filename: 'enter.html',
        template: path.join(__dirname, 'src/enter.html'),
        chunks: ['enter'],
        inject: true
      }),
      new WebpackAssetMonitor({
        'index.html': {
          product: 'pinzhi',
          page: 'index'
        },
        'enter.html': {
          product: 'pinzhi',
          page: 'index'
        }
      })
  ]

配置全部文件:

  plugins: [
    new HtmlWebpackPlugin({
        filename: 'enter.html',
        template: path.join(__dirname, 'src/enter.html'),
        chunks: ['enter'],
        inject: true
      }),
      new WebpackAssetMonitor({
          product: 'pinzhi'
      })
  ]
1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago