webpack-slim-project-plugin

1.0.2 • Public • Published

William

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

Package Sidebar

Install

npm i webpack-slim-project-plugin

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

5.97 kB

Total Files

5

Last publish

Collaborators

  • vivi0119