diff --git a/scripts/esbuild.js b/scripts/esbuild.js index 9846422d..fbcc3a67 100644 --- a/scripts/esbuild.js +++ b/scripts/esbuild.js @@ -1,4 +1,5 @@ const esbuild = require('esbuild') +const fs = require('fs') for (let f of ["content", "background", "help", "newtab", "commandline_frame"]) { esbuild.build({ @@ -9,3 +10,17 @@ for (let f of ["content", "background", "help", "newtab", "commandline_frame"]) outfile: `buildtemp/${f}.js`, }).catch(() => process.exit(1)) } + +// TODO: replace the copywebpackplugin below +// await fs.promises.cp() +// +// { from: "src/manifest.json" }, +// { +// from: "src/static", +// to: "static", +// globOptions: { +// ignore: ["**/*.psd", "**/*1024px.png"], +// }, +// }, +// { from: "generated/static", to: "static" }, +// { from: "issue_template.md" },