chore: 🔨 修改package.json内容
This commit is contained in:
parent
36240d1cba
commit
59d4c40ee9
File diff suppressed because one or more lines are too long
|
@ -42,9 +42,9 @@ const __APP_INFO__ = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** 处理环境变量 */
|
/** 处理环境变量 */
|
||||||
const wrapperEnv = (envConf: Recordable): ViteEnv => {
|
const wrapperEnv = (envConf: Recordable) => {
|
||||||
// 默认值
|
// 默认值
|
||||||
const ret: ViteEnv = {
|
const ret: any = {
|
||||||
VITE_PORT: 6261,
|
VITE_PORT: 6261,
|
||||||
VITE_PUBLIC_PATH: "",
|
VITE_PUBLIC_PATH: "",
|
||||||
VITE_ROUTER_HISTORY: "",
|
VITE_ROUTER_HISTORY: "",
|
||||||
|
@ -73,7 +73,7 @@ const wrapperEnv = (envConf: Recordable): ViteEnv => {
|
||||||
const fileListTotal: number[] = [];
|
const fileListTotal: number[] = [];
|
||||||
|
|
||||||
/** 获取指定文件夹中所有文件的总大小 */
|
/** 获取指定文件夹中所有文件的总大小 */
|
||||||
const getPackageSize = options => {
|
const getPackageSize = (options: any) => {
|
||||||
const { folder = "dist", callback, format = true } = options;
|
const { folder = "dist", callback, format = true } = options;
|
||||||
readdir(folder, (err, files: string[]) => {
|
readdir(folder, (err, files: string[]) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
|
|
@ -14,13 +14,13 @@
|
||||||
"esm"
|
"esm"
|
||||||
],
|
],
|
||||||
"description": "Bunny-Admin后台管理系统",
|
"description": "Bunny-Admin后台管理系统",
|
||||||
"homepage": "https://gitee.com/BunnyBoss/bunny-admin",
|
"homepage": "https://gitee.com/BunnyBoss/vite_ts_auto",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitee.com/BunnyBoss/bunny-admin"
|
"url": "https://gitee.com/BunnyBoss/vite_ts_auto"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://gitee.com/BunnyBoss/bunny-admin/issues"
|
"url": "https://gitee.com/BunnyBoss/vite_ts_auto/issues"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": {
|
"author": {
|
||||||
|
@ -45,6 +45,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pureadmin/utils": "^2.4.7",
|
"@pureadmin/utils": "^2.4.7",
|
||||||
|
"@types/gradient-string": "^1.1.6",
|
||||||
"@unocss/preset-uno": "^0.60.0",
|
"@unocss/preset-uno": "^0.60.0",
|
||||||
"@unocss/vite": "^0.60.0",
|
"@unocss/vite": "^0.60.0",
|
||||||
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { resolve } from "path";
|
import { resolve } from "path";
|
||||||
import { type ConfigEnv, type UserConfig, defineConfig, loadEnv } from "vite";
|
import { type ConfigEnv, defineConfig, loadEnv, type UserConfig } from "vite";
|
||||||
import { createVitePlugins } from "./build/plugins";
|
import { createVitePlugins } from "./build/plugins";
|
||||||
import { wrapperEnv } from "./src/utils/getEnv";
|
import { wrapperEnv } from "./src/utils/getEnv";
|
||||||
|
|
||||||
|
|
|
@ -1786,6 +1786,13 @@
|
||||||
"@types/qs" "*"
|
"@types/qs" "*"
|
||||||
"@types/serve-static" "*"
|
"@types/serve-static" "*"
|
||||||
|
|
||||||
|
"@types/gradient-string@^1.1.6":
|
||||||
|
version "1.1.6"
|
||||||
|
resolved "https://registry.npmmirror.com/@types/gradient-string/-/gradient-string-1.1.6.tgz#ce189baa38441e1a97eb376a2b140f7793720396"
|
||||||
|
integrity sha512-LkaYxluY4G5wR1M4AKQUal2q61Di1yVVCw42ImFTuaIoQVgmV0WP1xUaLB8zwb47mp82vWTpePI9JmrjEnJ7nQ==
|
||||||
|
dependencies:
|
||||||
|
"@types/tinycolor2" "*"
|
||||||
|
|
||||||
"@types/html-minifier-terser@^6.0.0":
|
"@types/html-minifier-terser@^6.0.0":
|
||||||
version "6.1.0"
|
version "6.1.0"
|
||||||
resolved "https://registry.npmmirror.com/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz#4fc33a00c1d0c16987b1a20cf92d20614c55ac35"
|
resolved "https://registry.npmmirror.com/@types/html-minifier-terser/-/html-minifier-terser-6.1.0.tgz#4fc33a00c1d0c16987b1a20cf92d20614c55ac35"
|
||||||
|
@ -1905,7 +1912,7 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
|
|
||||||
"@types/tinycolor2@^1.4.0":
|
"@types/tinycolor2@*", "@types/tinycolor2@^1.4.0":
|
||||||
version "1.4.6"
|
version "1.4.6"
|
||||||
resolved "https://registry.npmmirror.com/@types/tinycolor2/-/tinycolor2-1.4.6.tgz#670cbc0caf4e58dd61d1e3a6f26386e473087f06"
|
resolved "https://registry.npmmirror.com/@types/tinycolor2/-/tinycolor2-1.4.6.tgz#670cbc0caf4e58dd61d1e3a6f26386e473087f06"
|
||||||
integrity sha512-iEN8J0BoMnsWBqjVbWH/c0G0Hh7O21lpR2/+PrvAVgWdzL7eexIFm4JN/Wn10PTcmNdtS6U67r499mlWMXOxNw==
|
integrity sha512-iEN8J0BoMnsWBqjVbWH/c0G0Hh7O21lpR2/+PrvAVgWdzL7eexIFm4JN/Wn10PTcmNdtS6U67r499mlWMXOxNw==
|
||||||
|
|
Loading…
Reference in New Issue