This commit is contained in:
xiaoxiaojx 2025-10-03 21:52:35 +08:00
parent bbcf095dd9
commit 7d37ce4a0e
4 changed files with 26 additions and 27 deletions

View File

@ -315,8 +315,7 @@
"spacek",
"thelarkinn",
"behaviour",
"WHATWG",
"systemvars"
"WHATWG"
],
"ignoreRegExpList": [
"/Author.+/",

View File

@ -1121,7 +1121,7 @@ export interface FileCacheOptions {
*/
export interface DotenvPluginOptions {
/**
* The directory from which .env files are loaded. Defaults to the webpack context. Loads .env, .env.local, .env.[mode], .env.[mode].local in order.
* The directory from which .env files are loaded. Can be an absolute path, or a path relative to the project root. false will disable the .env file loading.
*/
dir?: boolean | string;
/**

4
types.d.ts vendored
View File

@ -4428,7 +4428,7 @@ declare class DotenvPlugin {
constructor(options?: DotenvPluginOptions);
config: {
/**
* The directory from which .env files are loaded. Defaults to the webpack context. Loads .env, .env.local, .env.[mode], .env.[mode].local in order.
* The directory from which .env files are loaded. Can be an absolute path, or a path relative to the project root. false will disable the .env file loading.
*/
dir?: string | boolean;
/**
@ -4464,7 +4464,7 @@ declare class DotenvPlugin {
*/
declare interface DotenvPluginOptions {
/**
* The directory from which .env files are loaded. Defaults to the webpack context. Loads .env, .env.local, .env.[mode], .env.[mode].local in order.
* The directory from which .env files are loaded. Can be an absolute path, or a path relative to the project root. false will disable the .env file loading.
*/
dir?: string | boolean;