Skip to content

zdz1993/webpack-bdwm-addmonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

介绍

本插件是像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'
      })
  ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published