Code Monkey home page Code Monkey logo

Comments (6)

thecristen avatar thecristen commented on May 29, 2024 8

A workaround is to make a change to one of the files that is watched, which will trigger the copy without having to kill the watch process.

from rollup-plugin-copy.

mindplay-dk avatar mindplay-dk commented on May 29, 2024 4

To others desperately searching for a solution to this, there's a fork here that worked for me:

https://www.npmjs.com/package/@guanghechen/rollup-plugin-copy

There is an open PR #42 from the author as well:

A comment on that PR says to use watch: { exclude: 'build/**' } - I didn't need to do that, it just worked.

from rollup-plugin-copy.

ViRuSTriNiTy avatar ViRuSTriNiTy commented on May 29, 2024 1

@mindplay-dk That exclude configuration is only needed when you try to watch files in the build folder (often named dist). As I already commented in the PR, watching files in the build output doesn't make sense anyway so this setting is not needed at all. Sorry for the confusion.

from rollup-plugin-copy.

BreizhReloaded avatar BreizhReloaded commented on May 29, 2024 1

Any update about the PR @vladshcherbin?

from rollup-plugin-copy.

gerwinbrunner avatar gerwinbrunner commented on May 29, 2024

Any update on this?

from rollup-plugin-copy.

MickL avatar MickL commented on May 29, 2024

I was not sure if it is supposed to watch the files or not because there is this copyOnce option.

from rollup-plugin-copy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.