vite-plugin-env-compatible
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -8,3 +8,3 @@ import { Plugin } from 'vite'; | ||
/** | ||
* 要注入客户端代码的前缀 | ||
* prefix for client-side injection | ||
* @default 'VUE_APP' | ||
@@ -14,3 +14,3 @@ */ | ||
/** | ||
* 注入到客户端代码后的访问路径 | ||
* client-side env path | ||
* @default 'process.env' | ||
@@ -20,4 +20,4 @@ */ | ||
/** | ||
* 是否不写入 process.env | ||
* vite 默认不写入,但是 vue-cli 写入,这里可以设置 | ||
* write to process.env | ||
* vite default not,whilte vue-cli yes | ||
* @default false | ||
@@ -24,0 +24,0 @@ */ |
@@ -202,4 +202,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __create = Object.create; | ||
enforce: "pre", | ||
config(config) { | ||
const mode = config.mode; | ||
config(config, {mode}) { | ||
if (!mode) { | ||
@@ -206,0 +205,0 @@ console.log(`[$${name}]: mode is undefined, cannot auto load .env.*, please check your bin/vite_dev script for --mode`); |
{ | ||
"name": "vite-plugin-env-compatible", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Environment Variables Compatible", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10829
247