Gathering detailed insights and metrics for rollup-plugin-copy-assets
Gathering detailed insights and metrics for rollup-plugin-copy-assets
Gathering detailed insights and metrics for rollup-plugin-copy-assets
Gathering detailed insights and metrics for rollup-plugin-copy-assets
rollup-plugin-copy
Copy files and folders using Rollup
rollup-plugin-smart-asset
Rollup plugin to rebase, inline or copy assets referenced from the code
rollup-plugin-copy2
Rollup plugin to copy additional assets to the build directory.
rollup-plugin-copy-watch
Copy files and folders using Rollup
Copy additional assets into the output directory of your rollup bundle.
npm install rollup-plugin-copy-assets
Typescript
Module System
96
Supply Chain
35.6
Quality
75.5
Maintenance
100
Vulnerability
99.6
License
JavaScript (68.55%)
HTML (22.8%)
CSS (8.65%)
Total Downloads
2,791,414
Last Day
1,854
Last Week
24,846
Last Month
115,097
Last Year
1,047,960
MIT License
23 Stars
43 Commits
6 Forks
3 Watchers
16 Branches
4 Contributors
Updated on Mar 05, 2023
Minified
Minified + Gzipped
Latest Version
2.0.3
Package Id
rollup-plugin-copy-assets@2.0.3
Unpacked Size
154.70 kB
Size
35.57 kB
File Count
10
Cumulative downloads
Total Downloads
Last Day
-14.7%
1,854
Compared to previous day
Last Week
-12.6%
24,846
Compared to previous week
Last Month
5.3%
115,097
Compared to previous month
Last Year
48.4%
1,047,960
Compared to previous year
Copy additional assets into the output directory of your rollup bundle.
1# add with yarn 2yarn add --dev rollup-plugin-copy-assets 3 4# or npm 5npm install --save-dev rollup-plugin-copy-assets
1// rollup.config.js 2import copy from "rollup-plugin-copy-assets"; 3 4export default { 5 input: "src/index.js", 6 output: { 7 file: "dist/bundle.js", 8 format: "cjs", 9 }, 10 plugins: [ 11 copy({ 12 assets: [ 13 // You can include directories 14 "src/assets", 15 // You can also include files 16 "src/external/buffer.bin", 17 ], 18 }), 19 ], 20};
On final bundle generation the provided files will be copied over into the output folder of your rollup bundle, maintaining the original hierarchy and relativity to the input file:
1# Source directory structure 2src/ 3- index.js 4- assets/ 5 - some-library-needing-special-treatment.js 6- external/ 7 - buffer.bin 8 9# Output directory structure 10dist/ 11- bundle.js 12- assets/ 13 - some-library-needing-special-treatment.js 14- external/ 15 - buffer.bin
assets
: (required) An array of paths to copy. Accepts files as well as directories.MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 2/11 approved changesets -- score normalized to 1
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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
60 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
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