Very basic rollup plugin to copy static assets over to you public directory. Files are copied using fs-extra.copy
This package can be installed using npm:
npm install rollup-plugin-copy
Add the following lines to your rollup.config.js
:
import copy from 'rollup-plugin-copy';
...
export default {
...
plugins: [
...
copy({
"src/index.html": "dist/index.html",
"node_modules/bootstrap/dist": "dist/vendor/bootstrap",
"node_modules/font-awesome": "dist/vendor/font-awesome",
verbose: true
})
...
]
...
}
verbose
:<boolean>
: display verbose message (default isfalse
)