{"library":"rollup-plugin-copy-assets","title":"rollup-plugin-copy-assets","description":"Rollup plugin to copy additional files and directories into the output directory of your Rollup bundle. The latest version 2.0.3 works with Rollup >=1.1.2. It maintains the relative directory hierarchy of copied assets. Key differentiators: simple API (just provide an array of paths), supports both files and directories, and works with chunked builds since v2.0.0. The plugin hooks into the generateBundle hook to copy assets. It has no other dependencies besides Rollup.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-copy-assets"],"cli":null},"imports":["import copy from 'rollup-plugin-copy-assets'","import copy from 'rollup-plugin-copy-assets'","const copy = require('rollup-plugin-copy-assets');","import copy from 'rollup-plugin-copy-assets'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport copy from 'rollup-plugin-copy-assets';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'cjs'\n  },\n  plugins: [\n    copy({\n      assets: [\n        'src/assets',\n        'src/external/buffer.bin'\n      ]\n    })\n  ]\n};","lang":"javascript","description":"Configures Rollup with the copy-assets plugin to copy a directory and a file to the output directory, preserving the relative structure.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}