Sketch webpack removal

This commit is contained in:
Oliver Blanthorn 2021-05-04 14:10:30 +02:00
parent 1a088abeef
commit fdd65ec76e
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -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" },