webpack-bdwm-addmonitor
v1.0.4
Published
A webpack plugin to add monitor code to script bdwm app
Downloads
3
Readme
介绍
本插件是像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'
})
]