feat(client/worker): support web work in frontend with fallback (#31)

* feat(client/web): add upload mgr

* feat(uploader): move uploader to worker

* feat(upload_mgr): use native worker for uploading

* fix(upload_mgr): fix uploading stop not working

* chore(client/web): cleanups

* test(upload.worker): add unit test for upload.worker

* feat(worker): add foreground upload worker

* chore(uploader): turn down the speedup
This commit is contained in:
Hexxa 2021-01-26 22:25:15 +08:00 committed by GitHub
parent 67c07cc81f
commit 31e4850344
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 1192 additions and 265 deletions

View file

@ -5,8 +5,13 @@ const dev = require("./webpack.dev.js");
module.exports = merge(dev, {
entry: "./src/app.tsx",
// entry: [
// "./src/app.tsx",
// "./src/worker/uploader.worker.ts",
// ],
context: `${__dirname}`,
output: {
globalObject: "this",
path: `${__dirname}/../../../public/static`,
chunkFilename: "[name].bundle.js",
filename: "[name].bundle.js"