Open joeworkman opened 1 year ago
This works but it seems a bit ridiculous that I should have to do this.
copy({ assets: {
from : "node_modules/jquery/dist/jquery.min.js",
to : "js/vendor"
}}),
copy({ assets: {
from : "node_modules/what-input/dist/what-input.min.js",
to : "js/vendor"
}}),
@joeworkman a little cleaner approach (avoids to call twice the plugin)
const esbuildConfig = {
plugins: [
copy({
assets: [
{
from: ["node_modules/jquery/dist/jquery.min.js"],
to: ["js/vendor"],
},
{
from: ["node_modules/what-input/dist/what-input.min.js"],
to: ["js/vendor"],
},
],
}),
],
};
I have a very simple setup with copy. I just want to copy 2 files into a folder.
However, it always fails when processing the 2nd file. If I switch the order of the files, it still fails on the 2nd one. I did a verbose output and got this.