diff --git a/.gitignore b/.gitignore index d419b9f..8728f4a 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ coverage *.tsbuildinfo *lock* + +*auto.import* diff --git a/.vscode/extensions.json b/.vscode/extensions.json deleted file mode 100644 index aecab6c..0000000 --- a/.vscode/extensions.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "recommendations": [ - "Vue.volar", - "esbenp.prettier-vscode" - ] -} diff --git a/package.json b/package.json index a1ae869..8f858cc 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "p": "vite preview", "build-only": "vite build", "b": "vite build", + "bp": "yarn b && yarn p", "type-check": "vue-tsc --build", "format": "prettier --write src/" }, @@ -26,12 +27,14 @@ "alova": "^3.3.4", "ant-design-vue": "^4.2.6", "base64-arraybuffer": "^1.0.2", + "javascript-obfuscator": "^4.1.1", "js-md5": "^0.8.3", "marked": "^16.1.2", "naive-ui": "^2.42.0", "pinia": "^3.0.3", "pinia-plugin-persistedstate": "^4.5.0", "sass-embedded": "^1.90.0", + "vite-plugin-bundle-obfuscator": "^1.8.0", "vue": "^3.5.18", "vue-router": "^4.5.1" }, @@ -47,6 +50,8 @@ "unplugin-auto-import": "^20.0.0", "unplugin-vue-components": "^29.0.0", "vite": "^7.0.6", + "vite-plugin-chunk-split": "^0.5.0", + "vite-plugin-obfuscator": "^1.0.5", "vite-plugin-vue-devtools": "^8.0.0", "vue-tsc": "^3.0.4" } diff --git a/src/page/chehaoca/index.vue b/src/page/chehaoca/index.vue index 62e9b4c..8d6baf5 100644 --- a/src/page/chehaoca/index.vue +++ b/src/page/chehaoca/index.vue @@ -62,7 +62,6 @@