Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brenner8023/sxf-deadfile-plugin
基于ts的可扫描项目僵尸文件的webpack插件
https://github.com/brenner8023/sxf-deadfile-plugin
Last synced: 6 days ago
JSON representation
基于ts的可扫描项目僵尸文件的webpack插件
- Host: GitHub
- URL: https://github.com/brenner8023/sxf-deadfile-plugin
- Owner: brenner8023
- Created: 2020-10-25T04:56:40.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-26T02:03:17.000Z (almost 3 years ago)
- Last Synced: 2024-10-29T23:35:40.117Z (about 2 months ago)
- Language: TypeScript
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sxf-deadfile-plugin
一款可以扫描项目僵尸文件的 webpack 插件
## 使用方法
`webpack.prod.config.js`:
```js
const SxfDeadfilePlugin = require("./dist/index.js").default;module.exports = {
mode: "production",
entry: "./src/index.js",
output: {
filename: "bundle.[hash].js",
path: path.resolve("dist"),
},
plugins: [
new SxfDeadfilePlugin({
include: ["src/components/**/*.(js|ts|vue)", "src/style/**/*"],
exclude: ["node_modules/**/*"],
}),
],
};
```