farm-fe / farm

Extremely fast Vite-compatible web build tool written in Rust
https://farmfe.org
MIT License
4.84k stars 159 forks source link

[Bug Report]: farm watch doesn't copy /public contents to /dist #1711

Open ddorstijn opened 1 month ago

ddorstijn commented 1 month ago

Steps to reproduce

Put in any item in the public directory and see that it does get copied over when running farm build but not when running farm watch

Reproduce link

No response

What is actually happening?

I need to have files on disk for my web extension, I have a manifest.json in the public directory. This doesn't get copied over so the extension crashes when using farm watch. Using the farm build -w command does work for now.

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (6) x64 AMD Ryzen 5 4500U with Radeon Graphics
    Memory: 4.94 GB / 15.37 GB
  Binaries:
    Node: 22.5.1 - ~\scoop\apps\nodejs\current\node.EXE
    Yarn: 1.22.22 - ~\scoop\apps\yarn\current\bin\yarn.CMD
    npm: 10.8.2 - ~\scoop\apps\nodejs\current\npm.CMD
    pnpm: 9.6.0 - ~\scoop\shims\pnpm.EXE
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    @farmfe/core: ^1.3.0 => 1.3.12
wre232114 commented 1 month ago

we will support copy public when running farm watch