diff --git a/env/.env.development b/env/.env.development deleted file mode 100644 index 9da53ba..0000000 --- a/env/.env.development +++ /dev/null @@ -1,9 +0,0 @@ -# 变量必须以 VITE_ 为前缀才能暴露给外部读取 -NODE_ENV = 'development' -# 是否去除console 和 debugger -VITE_DELETE_CONSOLE = false -# 是否开启sourcemap -VITE_SHOW_SOURCEMAP = true - -# 后台请求地址 -VITE_SERVER_BASEURL = 'https://dev.xxx.com' \ No newline at end of file diff --git a/env/.env.production b/env/.env.production index cae8946..9411144 100644 --- a/env/.env.production +++ b/env/.env.production @@ -1,5 +1,5 @@ # 变量必须以 VITE_ 为前缀才能暴露给外部读取 -NODE_ENV = 'development' +NODE_ENV = 'production' # 是否去除console 和 debugger VITE_DELETE_CONSOLE = true # 是否开启sourcemap diff --git a/env/.env.test b/env/.env.test index 9c3dea7..fff5e63 100644 --- a/env/.env.test +++ b/env/.env.test @@ -2,6 +2,8 @@ NODE_ENV = 'development' # 是否去除console 和 debugger VITE_DELETE_CONSOLE = false +# 是否开启sourcemap +VITE_SHOW_SOURCEMAP = false # 后台请求地址 VITE_SERVER_BASEURL = 'https://test.xxx.com' \ No newline at end of file