useless-files-webpack-plugin

webpack deal useless files plugin

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
useless-files-webpack-plugin
1.0.16 years ago6 years agoMinified + gzip package size for useless-files-webpack-plugin in KB

Readme

API

const UselessFile = require('useless-files-webpack-plugin')

plugins: [
  new UselessFile({
    root: './src', // 项目目录
    out?: './fileList.json', // 输出文件列表
    out?: (files) => deal(files), // 或者回调处理
    clean?: false // 删除文件,
    exclude?: path // 排除文件列表, 格式为文件路径数组
  })
]