Open lionel87 opened 1 year ago
Managed to workaround by adding ./
prefix to the paths :
copyPlugin({
resolveFrom: 'cwd',
assets: [{
from: './public/**/*',
to: './dist'
}],
verbose: true,
copyOnStart: true,
watch: true,
}),
This way it works as intended.
Can you provide me with a minimum reproduction example? I tried to restore your project structure locally, but I didn't find the expected error reporting 🙏.
encountered a weird bug, where the file name of the destination path is removed from the constructed path.
plugin setup:
cwd is in
D:\GIT\myapp\
esbuild version: 0.17.10 copy plugin version: 2.1.0output log:
esbuild running in watch mode produces the same output source files are readable, destionation folder is clean, and writeable.
Tried to rename the
publication-type.json
json to something completely different, then it errors with a different file namedpublication.json
. I dont know if filenames are relevant or not. Mypublic
folder contains these files:this plugin seems great and does exactly what we need, so I would be happy if this could be fixed!