Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aduryagin/unused-files-plugin
Show or remove all files that are not compiled by webpack under webpack's context.
https://github.com/aduryagin/unused-files-plugin
code files plugin unused webpack
Last synced: 6 days ago
JSON representation
Show or remove all files that are not compiled by webpack under webpack's context.
- Host: GitHub
- URL: https://github.com/aduryagin/unused-files-plugin
- Owner: aduryagin
- Created: 2018-08-02T10:47:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-15T11:45:11.000Z (about 6 years ago)
- Last Synced: 2024-10-10T16:43:16.835Z (27 days ago)
- Topics: code, files, plugin, unused, webpack
- Language: JavaScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UnusedFilesPlugin
[![npm version](https://badge.fury.io/js/unused-files-plugin.svg)](https://badge.fury.io/js/unused-files-plugin)Show or remove all files that are not compiled by webpack under webpack's context.
## Options
```javascript
plugins: [
...
new UnusedFilesPlugin({
remove: false,
folders: [
path.resolve(__dirname, '../../client'),
path.resolve(__dirname, '../../server'),
],
ignore: [/node_modules/, /\.DS_Store/, /__mocks__/, /__tests?__/],
})
],
```
* `remove`: Remove or not unused files. The default value is `false`
* `ignore`: Array of regexp for ignore paths. The default value is `[/node_modules/, /\.DS_Store/, /__tests?__/]`
* `folders`: Array of paths with source code.