I am trying to achieve something where I need to copy contents/files from a cdn to the local directory of the project while doing a rollup build.
I was using rollup-plugin-copy but this only works for local files, using cdn in the src targets doesn't work.
I am trying something like this:
import copy from 'rollup-plugin-copy';
...
plugins: [
copy({
targets: [
{ src: 'https://domain.cdn.com/dist/', dest: 'local/copy-assets-here/' },
],
hook: 'writeBundle'
}),
]
Can anybody help?