MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / applyDotEnvPlugin

Function applyDotEnvPlugin

packages/webpack5/src/helpers/dotEnv.ts:12–23  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

10 * @internal
11 */
12export function applyDotEnvPlugin(config: Config) {
13 const path = getDotEnvPath();
14
15 config.when(path !== null, (config) => {
16 config.plugin('DotEnvPlugin').use(DotEnvPlugin, [
17 {
18 path,
19 silent: true, // hide any errors
20 },
21 ]);
22 });
23}
24
25function getDotEnvFileName(): string {
26 if (env.env) {

Callers 1

base.tsFile · 0.90

Calls 1

getDotEnvPathFunction · 0.85

Tested by

no test coverage detected