{"_id":"@breathlessway/unused-file-plugin","_rev":"2-5dbdd8b30901e59ca86c09080c260aca","name":"@breathlessway/unused-file-plugin","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@breathlessway/unused-file-plugin","version":"0.0.1","keywords":["webpack","vite"],"author":"","license":"MIT","_id":"@breathlessway/unused-file-plugin@0.0.1","maintainers":[{"name":"breathlessway","email":"731005087@qq.com"}],"dist":{"shasum":"b87579a81a549a03cc07e707664e436929a532b3","tarball":"https://registry.npmjs.org/@breathlessway/unused-file-plugin/-/unused-file-plugin-0.0.1.tgz","fileCount":3,"integrity":"sha512-8c0rMhlZF8RzHMuyjNgwm3xyUgVFVnOvbbppqKaUBaJK3kbOwsOMQn5JvMGaL3qinjF7lo6veXpgBi82xUqpIg==","signatures":[{"sig":"MEUCIQDpcHbPmEAZkYSE1Wwv6NIbkS1/yhaBVDMBGpcVSl8pYAIgJgFywjdLarYhnTL1M2ibEbqehnXr1dn7jQuHt2XlLgk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6728},"main":"dist/index.js","gitHead":"4c44980022a6c9a152ece86df90583fd405f1ca5","scripts":{"ugly":"terser dist/index.js --config-file terser.json  --output dist/index.js","build":"babel index.js --out-file dist/index.js && npm run ugly","prepublishOnly":"npm run build"},"_npmUser":{"name":"breathlessway","email":"731005087@qq.com"},"_npmVersion":"8.11.0","description":"列出并移除项目中未使用的文件的webpack/vite插件","directories":{},"_nodeVersion":"17.9.1","dependencies":{"terser":"^5.28.1","fs-extra":"^11.1.0","fast-glob":"^3.2.12","@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/\n"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/unused-file-plugin_0.0.1_1720061920837_0.5363399828909783","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@breathlessway/unused-file-plugin","version":"0.0.2","keywords":["webpack","vite"],"author":"","license":"MIT","_id":"@breathlessway/unused-file-plugin@0.0.2","maintainers":[{"name":"breathlessway","email":"731005087@qq.com"}],"dist":{"shasum":"b3faed379d270bd2a84e1478d8c0f1d211928e9d","tarball":"https://registry.npmjs.org/@breathlessway/unused-file-plugin/-/unused-file-plugin-0.0.2.tgz","fileCount":3,"integrity":"sha512-Qw0JTN340+2Jr159u57ArGV7qnPayvFffU4HemWY43ws453BPSQQNH+wxl3w8RvCG2nUEGCY3AJ0mYSwNPYjdw==","signatures":[{"sig":"MEUCIFN1/OoBnkh7vxYw1x2dqWOGPxiTgjfGptFEJQE908YrAiEAogyezgEQ/GWdmm+EwHTzRbUfO8vNv9iBiwsWWBQDxnA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6863},"main":"dist/index.js","gitHead":"4c44980022a6c9a152ece86df90583fd405f1ca5","scripts":{"ugly":"terser dist/index.js --config-file terser.json  --output dist/index.js","build":"babel index.js --out-file dist/index.js && npm run ugly","prepublishOnly":"npm run build"},"_npmUser":{"name":"breathlessway","email":"731005087@qq.com"},"_npmVersion":"8.11.0","description":"找出 webpack/vite 构建的项目中未被使用的文件的 webpack/vite 插件","directories":{},"_nodeVersion":"17.9.1","dependencies":{"terser":"^5.28.1","fs-extra":"^11.1.0","fast-glob":"^3.2.12","@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/unused-file-plugin_0.0.2_1720662802004_0.11679459018007488","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@breathlessway/unused-file-plugin","version":"0.0.3","description":"找出 webpack/vite 构建的项目中未被使用的文件的 webpack/vite 插件","main":"dist/index.js","scripts":{"ugly":"terser dist/index.js --config-file terser.json  --output dist/index.js","build":"babel index.js --out-file dist/index.js && npm run ugly","prepublishOnly":"npm run build"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"keywords":["webpack","vite"],"author":"","license":"MIT","dependencies":{"@babel/cli":"^7.23.9","@babel/core":"^7.24.0","@babel/preset-env":"^7.24.0","fast-glob":"^3.2.12","fs-extra":"^11.1.0","terser":"^5.28.1"},"gitHead":"4c44980022a6c9a152ece86df90583fd405f1ca5","_id":"@breathlessway/unused-file-plugin@0.0.3","_nodeVersion":"17.9.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-KRjZXwTTKd+Myydfrb1kkqXhRy5teuh3u68xM38yatW+PS0w/ARdcdKq/ObZ1DfLEtHwOId5bZJzANTqmySnMg==","shasum":"cc2092ffb7929101c0d0a2e2633f2d415018e9c5","tarball":"https://registry.npmjs.org/@breathlessway/unused-file-plugin/-/unused-file-plugin-0.0.3.tgz","fileCount":3,"unpackedSize":6874,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCsEkrCjMb0/2J3Kyx4OEuzuXIcdv7NTSOofjvOscNrmwIhAOAbly3pckYWrpdW6mB5epq9YAAyPohV6F/T1pfdA2JA"}]},"_npmUser":{"name":"breathlessway","email":"731005087@qq.com"},"directories":{},"maintainers":[{"name":"breathlessway","email":"731005087@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unused-file-plugin_0.0.3_1720662848535_0.02586240108876048"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-04T02:58:40.754Z","modified":"2024-07-11T01:54:08.846Z","0.0.1":"2024-07-04T02:58:40.976Z","0.0.2":"2024-07-11T01:53:22.145Z","0.0.3":"2024-07-11T01:54:08.670Z"},"license":"MIT","keywords":["webpack","vite"],"description":"找出 webpack/vite 构建的项目中未被使用的文件的 webpack/vite 插件","maintainers":[{"name":"breathlessway","email":"731005087@qq.com"}],"readme":"# 找出 webpack/vite 构建的项目中未被使用的文件的 webpack/vite 插件\n\nhttps://github.com/BreathlessWay/unused-file-plugin\n\n## Usage\n\n> npm i @breathlessway/unused-file-plugin -D\n\n> webpack 中\n```javascript\n\nconst { WebpackUnusedFileListPlugin } = require('@breathlessway/unused-file-plugin')\n\nplugins:[\n\tnew WebpackUnusedFileListPlugin({ \n        dir: 'src', // 搜索文件的入口目录，默认 src,\n        remove: false, // 是否移除未使用文件，默认 false\n        whitelist: [], // 不需要被标记为无用文件的列表，需要是完整的路径 resouve(__dirname, '文件路径')\n        whiteExt: [] // 不需要被标记为无用文件的后缀名列表\n    })\n]\n\n```\n\n> vite 中\n```javascript\n\nconst { ViteUnusedFileListPlugin } = require('@breathlessway/unused-file-plugin')\n\nplugins: [\n\tnew ViteUnusedFileListPlugin({ \n        dir: 'src', // 搜索文件的入口目录，默认 src,\n        remove: false, // 是否移除未使用文件，默认 false\n        whitelist: [], // 不需要被标记为无用文件的列表，需要是完整的路径 resouve(__dirname, '文件路径')\n        whiteExt: ['.d.ts'], // 不需要被标记为无用文件的后缀名列表\n\t}).init()\n]\n\n```\n","readmeFilename":"README.md"}