From 402fb184f7dfd03306179704c7e847f7dadb2e08 Mon Sep 17 00:00:00 2001 From: MengYX Date: Wed, 5 Feb 2020 00:30:44 +0800 Subject: [PATCH] Add Web Worker --- package-lock.json | 9 ++++++ package.json | 3 +- src/App.vue | 71 +++++++++++++++++++++++-------------------- src/decrypt/common.js | 3 +- 4 files changed, 50 insertions(+), 36 deletions(-) diff --git a/package-lock.json b/package-lock.json index 112fb2b..f4fa7f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11215,6 +11215,15 @@ "errno": "~0.1.7" } }, + "workerize-loader": { + "version": "1.1.0", + "resolved": "https://registry.npm.taobao.org/workerize-loader/download/workerize-loader-1.1.0.tgz", + "integrity": "sha1-06Y0OQ3LaFzB7iks0f/+7wpkYEQ=", + "dev": true, + "requires": { + "loader-utils": "^1.2.3" + } + }, "wrap-ansi": { "version": "6.2.0", "resolved": "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-6.2.0.tgz", diff --git a/package.json b/package.json index 2c9fe0d..cbe232f 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@vue/cli-service": "^4.1.2", "babel-plugin-component": "^1.1.1", "vue-cli-plugin-element": "^1.0.1", - "vue-template-compiler": "^2.6.11" + "vue-template-compiler": "^2.6.11", + "workerize-loader": "^1.1.0" } } diff --git a/src/App.vue b/src/App.vue index 158ff29..369000b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -85,8 +85,11 @@