Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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插件

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/**/*"],
}),
],
};
```