On this page

Options for Dotenv plugin.

Type:string | false

The directory from which .env files are loaded. Can be an absolute path, false will disable the .env file loading.

Type:string | string[]

Only expose environment variables that start with these prefixes. Defaults to 'WEBPACK_'.

Type:string[]

Template patterns for .env file names. Use [mode] as placeholder for the webpack mode. Defaults to ['.env', '.env.local', '.env.[mode]', '.env.[mode].local'].