@webvuer/webpack-plugin
v2.0.10
Published
用于分析模块信息和注入代码覆盖率上报逻辑的插件。
Downloads
8
Readme
@webvuer/webpack-plugin
用于 webpack 中的前端 js 覆盖率和模块分析插件。
const { WebpackPlugin, } = require('./index.js');
let plugin = new WebpackPlugin({
src: './src',
output: './output/htdocs',
url: 'http://192.168.8.100:3001/api/',
id: '__webvuer__',
coverage: {
patterns: [
'**/*.js',
'**/*.vue',
],
},
module: {
patterns: [
'**/*',
'!apiDoc/',
],
excludes: [],
matches: [
`.js`,
`.json`,
`.vue`,
`.less`,
`.css`,
`.sass`,
`/index.js`,
`/index.json`,
`/index.vue`,
`/index.less`,
`/index.css`,
`/index.sass`,
],
},
});
plugin.parse();