Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
copy assets from cdn to local in rollup build

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?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!