1.0.2 • Published 6 months ago

webpack-slim-project-plugin v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Webpack Slim Project Plugin

A Webpack plugin that output redundant files map for project.

Features

  • Output the redundant files sourcemap of project
  • Support custom configuration

Install

npm i webpack-slim-project-plugin --save-dev

Usage

// webpack.config.js

const WebpackSlimProjectPlugin = require("webpack-slim-project-plugin");

...
plugins: [
  new WebpackSlimProjectPlugin({
    include: [...],
    exclude: [...],
    ...
  }),
],
...

outputed the source map of redundant files(CleanRedundantFilesPlugin.json).

Issues

  • This plugin only supports projects built by webpack
  • Unable to accurately detect the dependency relationship of typescript
  • If other plugins in the project operated on compilation.fileDependencies, the result will not match expectations