Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
rollup-plugin-copy-assets
Advanced tools
Copy additional assets into the output directory of your rollup bundle.
Copy additional assets into the output directory of your rollup bundle.
# add with yarn
yarn add --dev rollup-plugin-copy-assets
# or npm
npm install --save-dev rollup-plugin-copy-assets
// rollup.config.js
import copy from "rollup-plugin-copy-assets";
export default {
input: "src/index.js",
output: {
file: "dist/bundle.js",
format: "cjs",
},
plugins: [
copy({
assets: [
// You can include directories
"src/assets",
// You can also include files
"src/external/buffer.bin",
],
}),
],
};
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:
# Source directory structure
src/
- index.js
- assets/
- some-library-needing-special-treatment.js
- external/
- buffer.bin
# Output directory structure
dist/
- bundle.js
- assets/
- some-library-needing-special-treatment.js
- external/
- buffer.bin
assets
: (required) An array of paths to copy. Accepts files as well as directories.MIT
2.0.3
FAQs
Copy additional assets into the output directory of your rollup bundle.
The npm package rollup-plugin-copy-assets receives a total of 13,483 weekly downloads. As such, rollup-plugin-copy-assets popularity was classified as popular.
We found that rollup-plugin-copy-assets demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.