Gathering detailed insights and metrics for filemanager-webpack-plugin-fixed
Gathering detailed insights and metrics for filemanager-webpack-plugin-fixed
Gathering detailed insights and metrics for filemanager-webpack-plugin-fixed
Gathering detailed insights and metrics for filemanager-webpack-plugin-fixed
Copy, move, archive (zip/tar/tar.gz), delete files and directories before and after Webpack builds. Win32/Mac/*Nix supported
npm install filemanager-webpack-plugin-fixed
Typescript
Module System
Node Version
NPM Version
62.5
Supply Chain
96.1
Quality
70.8
Maintenance
100
Vulnerability
96.4
License
JavaScript (99.38%)
HTML (0.49%)
CSS (0.13%)
Total Downloads
340,423
Last Day
1
Last Week
159
Last Month
774
Last Year
8,656
MIT License
1 Stars
100 Commits
1 Forks
2 Branches
1 Contributors
Updated on Mar 17, 2020
Minified
Minified + Gzipped
Latest Version
2.0.9
Package Id
filemanager-webpack-plugin-fixed@2.0.9
Unpacked Size
46.24 kB
Size
11.40 kB
File Count
5
NPM Version
6.10.2
Node Version
10.16.1
Cumulative downloads
Total Downloads
Last Day
-50%
1
Compared to previous day
Last Week
-31.2%
159
Compared to previous week
Last Month
-0.8%
774
Compared to previous month
Last Year
-29.7%
8,656
Compared to previous year
20
This Webpack plugin allows you to copy, archive (.zip/.tar/.tar.gz), move, delete files and directories before and after builds
npm install filemanager-webpack-plugin --save-dev
Webpack.config.js:
1const FileManagerPlugin = require('filemanager-webpack-plugin'); 2 3module.exports = { 4 ... 5 ... 6 plugins: [ 7 new FileManagerPlugin({ 8 onEnd: { 9 copy: [ 10 { source: '/path/from', destination: '/path/to' }, 11 { source: '/path/**/*.js', destination: '/path' }, 12 { source: '/path/fromfile.txt', destination: '/path/tofile.txt' }, 13 { source: '/path/**/*.{html,js}', destination: '/path/to' }, 14 { source: '/path/{file1,file2}.js', destination: '/path/to' }, 15 { source: '/path/file-[hash].js', destination: '/path/to' } 16 ], 17 move: [ 18 { source: '/path/from', destination: '/path/to' }, 19 { source: '/path/fromfile.txt', destination: '/path/tofile.txt' } 20 ], 21 delete: [ 22 '/path/to/file.txt', 23 '/path/to/directory/' 24 ], 25 mkdir: [ 26 '/path/to/directory/', 27 '/another/directory/' 28 ], 29 archive: [ 30 { source: '/path/from', destination: '/path/to.zip' }, 31 { source: '/path/**/*.js', destination: '/path/to.zip' }, 32 { source: '/path/fromfile.txt', destination: '/path/to.zip' }, 33 { source: '/path/fromfile.txt', destination: '/path/to.zip', format: 'tar' }, 34 { 35 source: '/path/fromfile.txt', 36 destination: '/path/to.tar.gz', 37 format: 'tar', 38 options: { 39 gzip: true, 40 gzipOptions: { 41 level: 1 42 }, 43 globOptions: { 44 nomount: true 45 } 46 } 47 } 48 49 ] 50 } 51 }) 52 ], 53 ... 54}
If you need to preserve the order in which operations will run you can set the onStart and onEnd events to be Arrays. In this example below, in the onEnd event the copy action will run first, and then the delete after:
1const FileManagerPlugin = require('filemanager-webpack-plugin'); 2 3module.exports = { 4 ... 5 ... 6 plugins: [ 7 new FileManagerPlugin({ 8 onEnd: [ 9 { 10 copy: [ 11 { source: "./dist/bundle.js", destination: "./newfile.js" } 12 ] 13 }, 14 { 15 delete: [ 16 "./dist/bundle.js" 17 ] 18 } 19 ] 20 }) 21 ], 22 ... 23} 24 25
1new FileManagerPlugin(fileEvents, options)
onStart
: Commands to execute before Webpack begins the bundling processonEnd
: Commands to execute after Webpack has finished the bundling processName | Description | Example |
---|---|---|
copy | Copy individual files or entire directories from a source folder to a destination folder. Also supports glob pattern | copy: [ { source: 'dist/bundle.js', destination: '/home/web/js/' } ] |
delete | Delete individual files or entire directories. | delete: [ 'file.txt', '/path/to' ] |
move | Move individual files or entire directories. | move: [ { source: 'dist/bundle.js', destination: '/home/web/js/' } ] |
mkdir | Create a directory path. Think mkdir -p | mkdir: [ '/path/to/directory/', '/another/path/' ] |
archive | Archive individual files or entire directories. Defaults to .zip unless 'format' and 'options' provided. Uses node-archiver | archive: [ { source: 'dist/bundle.js', destination: '/home/web/archive.zip' format: 'tar' or 'zip' options: { options passed to archiver } } ] |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
110 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More