@dlzn-ui/vite-config 2.0.56 → 2.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -3
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -405,7 +405,8 @@ const index = (_env, options) => {
405
405
  VITE_FORCE_PWD_CHANGE = true,
406
406
  VITE_PROXY_TARGET: viteProxyTarget,
407
407
  VITE_SHOW_LOGIN_LOGO = true,
408
- VITE_USE_LOGIN_CAPTCHA = true
408
+ VITE_USE_LOGIN_CAPTCHA = true,
409
+ VITE_USER_PHONE_REQUIRED = true
409
410
  } = env;
410
411
  const VITE_PROXY_TARGET = Array.isArray(viteProxyTarget) ? viteProxyTarget : [viteProxyTarget];
411
412
  console.log({
@@ -418,7 +419,8 @@ const index = (_env, options) => {
418
419
  VITE_FORCE_PWD_CHANGE,
419
420
  VITE_PROXY_TARGET,
420
421
  VITE_SHOW_LOGIN_LOGO,
421
- VITE_USE_LOGIN_CAPTCHA
422
+ VITE_USE_LOGIN_CAPTCHA,
423
+ VITE_USER_PHONE_REQUIRED
422
424
  });
423
425
  const isProduction = mode === "production";
424
426
  const getProxyTarget = (index, port) => {
@@ -454,7 +456,8 @@ const index = (_env, options) => {
454
456
  VITE_BASE_URL: JSON.stringify(VITE_BASE_URL),
455
457
  VITE_FORCE_PWD_CHANGE: JSON.stringify(VITE_FORCE_PWD_CHANGE),
456
458
  VITE_SHOW_LOGIN_LOGO: JSON.stringify(VITE_SHOW_LOGIN_LOGO),
457
- VITE_USE_LOGIN_CAPTCHA: JSON.stringify(VITE_USE_LOGIN_CAPTCHA)
459
+ VITE_USE_LOGIN_CAPTCHA: JSON.stringify(VITE_USE_LOGIN_CAPTCHA),
460
+ VITE_USER_PHONE_REQUIRED: JSON.stringify(VITE_USER_PHONE_REQUIRED)
458
461
  },
459
462
  // envDir, // 将 env 文件里面的变量注入到 import.meta.env 里面
460
463
  optimizeDeps: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dlzn-ui/vite-config",
3
3
  "type": "module",
4
- "version": "2.0.56",
4
+ "version": "2.0.57",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -36,7 +36,7 @@
36
36
  "vite-plugin-html": "^3.2.2",
37
37
  "vite-plugin-vue-tailwind-auto-reference": "^2.0.2",
38
38
  "vue-router": "^5.2.0",
39
- "@dlzn-ui/node-utils": "2.0.56"
39
+ "@dlzn-ui/node-utils": "2.0.57"
40
40
  },
41
41
  "devDependencies": {
42
42
  "rimraf": "^6.1.3",